Hello:

One of the web services I am integrating with is generating an
XML response that contains this:

<SKU>25544520050&amp</SKU>

When I try to use the Xerces parse to parse it, I get this error:

[Fatal Error] :1:21: The reference to entity "amp" must end with the ';'
delimiter.
Exception in thread "main" org.xml.sax.SAXParseException: The reference to
entity "amp" must end with the ';' delimiter.
        at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
        at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
        at ParseTest.main(ParseTest.java:11)

Is there a way to override this behavior and force the parser to just
take the input as text?

Thanks,
        Neil

--
Neil Aggarwal, JAMM Consulting, (214) 986-3533, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less! http://newsletter.JAMMConsulting.com 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to