cancel
Showing results for 
Search instead for 
Did you mean: 

XML file reading issue, inqmyxml.jar may/may not help?

Former Member
0 Kudos

Hello,

I am trying to get an application running using the PDK ver 5.0.5 (tomcat 3.3.1a), and am running into a problem parsing an XML file.

We usually use xalan and xerces, but these don't seem to work with the PDK. After scanning these archives, I saw a reference to inqmyxml.jar, that sounded right. However, when I use inqmyxml.jar in my project, I get an exception:

java.lang.NoClassDefFoundError: org/apache/xml/serialize/BaseMarkupSerializer.

If I add my usual xerces.jar into my project and retry, I get this error:

java.lang.NoSuchMethodError: org.w3c.dom.Node: method normalize()V not found

at com.inqmy.lib.xml.parser.DOMParser.parse(DOMParser.java:83)

at com.inqmy.lib.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:108)

Can anybody give me some hints as to what I can try next?

Thanks!

-Ketan

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

The first problem; java.lang.NoClassDefFoundError: org/apache/xml/serialize/BaseMarkupSerializer;

comes from the fact that you are using an xerces specific implementation class that is not found in the inqmyxml.jar.

Can seems to find the API for the inqmyxml.jar, but it should be somewhere.

The second problem is a bit more complicated. It seems to use inqmyxml for most of the classes, but gets some of the classes from the xerces (which is not a good solution as it gives you all kinds of classloader problems). The normalize method do exist in the NodeImpl class of inqmyxml.jar (tried decompiling and found it).

Somebody in this forum probably have got xerces to work, so do some searching first..