I receive the following error when reading the attached file using SAX (Oracle XML Parser, v.2.0.2.9.0): if character data starts with a whitespace, characters( ) method discards characters that follows whitespace. Is this a bug or can I force the parser to not discard those characters?
Answer Use XMLParser.setPreserveWhitespace(true) to force the parser to not discard whitespace. Validation DTD: Understanding DOCTYPE and Validating Parser Question I have an XML string contains the following reference to a DTD, that is physically located in the directory where I start my program. The validating XML parser complains that this file can not be found.
Related Questions
- I receive the following error when reading the attached file using SAX (Oracle XML Parser, v.2.0.2.9.0): if character data starts with a whitespace, characters( ) method discards characters that follows whitespace. Is this a bug or can I force the parser to not discard those characters?
- Does the Oracle XML Parser come with a utility to parse an XML file and see the parsed output?
- I Still get an XML error. How can I clean the borked XML file?