Skip to Content
author's profile photo Former Member
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Apr 20, 2004 at 06:45 AM

    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..

    Add comment
    10|10000 characters needed characters exceeded