I am using Jaxp 1.1 and Xerces 1.4.1 to parse XML documents. I am using setValidating(true), setIgnoringComments(true), setIgnoringElementContentWhitespace(true) and setNamespaceAware ( true )while setting the configuration options for the DocumentBuilderFactory. When parsing XML with DTD doctype everything goes on OK but when I use grammer specified in a XML schema definition (xsd file) I get a document which has all empty children nodes. To make sure that my XML is valid I used the DOMCount class (which came with Xerces1.4.1 in the XercesSamples.jar) with validation ON. It seems to count all the elements in the XML OK. So I think my XML is valid. What am I missing? Is there some other option which I am not setting? Or is there something specific I need to do in my xsd? Any help greatly appreciated. Thanks Yash.
Originally posted by Madhav Lakkapragada: is this the Yash, i know.... just curious...don't want to reveal more details here... - satya
Yes. I am. Do you also know the solution to my problem?
Joined: Jun 03, 2000
Welcome, Yash. I will try to get some help.... - satya
Joined: Jul 31, 2001
Originally posted by Madhav Lakkapragada: Welcome, Yash. I will try to get some help.... - satya
I was hoping to use the abstraction provided by JAXP so that I can plug in any XML parser in the future. Xerces 1.4.1 - I think claims only Beta support for JAXP. Has any body used Xerces as parser with JAXP API in the code? BTW The DOMCount class shipped in the XercesSamples.jar has almost all the same options to the Document Builder. It referes to them by their actual names, viz. "http://xml.org/sax/features/validation" etc. Thanks in advance for any clue, help you can provide. Yash Sathaye
subject: Using JAXP 1.1 and Xerces 1.4.1 : Get empty document children nodes