V
Vineeth
Hi,
I am using xerces2.6.0 and am developing a program for converting an
xml document to a text file. My program is extending the
DefaultHandler. The first problem I am facing is that even though I
have turned the Validation feature off, the SAX parser still needs the
DTD to be present. If I remove the DOCTYPE declaration from the XML
file then it raises an exception for unparsed entities. If I provide a
zero byte DTD then the SX parser parses the document. Can someone
suggest how I can remove this dependency.
The second problem that I am facing is that my XML file contains many
external entities which I donot want the SAX parser to resolve on its
own. I would be resolving those entities programatically using java
code. I want the SAX parser to return all the text as it is to me
through the characters event. In my present case it is returning only
null values in place of any external entity. I would really
appreciate any hep in the above problems.
Thankx,
Vineeth
I am using xerces2.6.0 and am developing a program for converting an
xml document to a text file. My program is extending the
DefaultHandler. The first problem I am facing is that even though I
have turned the Validation feature off, the SAX parser still needs the
DTD to be present. If I remove the DOCTYPE declaration from the XML
file then it raises an exception for unparsed entities. If I provide a
zero byte DTD then the SX parser parses the document. Can someone
suggest how I can remove this dependency.
The second problem that I am facing is that my XML file contains many
external entities which I donot want the SAX parser to resolve on its
own. I would be resolving those entities programatically using java
code. I want the SAX parser to return all the text as it is to me
through the characters event. In my present case it is returning only
null values in place of any external entity. I would really
appreciate any hep in the above problems.
Thankx,
Vineeth