I am reading the data from file (pipe delimited) and then convert them to XML and pass it to XML parser.
If I run the parser on Win-doze, it parses fine. But if I run it on AIX, I get the following exception:
org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
The code that calls the parser is this:
parser.parse( new InputSource( input.toXMLString() ));
The method toXMLString returns ByteArrayInputStream.
Anyone knows why this is happening? My guess is a little-endian/big-endian byte order issue. If so, how could I fix that? I tried setting the encoding before I call the parse method. But no help.
Your help will be appreciated.
Thanks,
-ramin
- SAX parser claims document not well-formed ramin_rad
- Re: SAX parser claims document not well-formed Murray Altheim
- Re: SAX parser claims document not well-formed ramin_rad
- Re: SAX parser claims document not well-formed Murray Altheim