If you really can't force the source of your documents to give you
correct XML, and you know for sure every & is meant as a literal & and
is not part of some actual entity reference, you could simply a custom
implementation of java.io.FilterInputStream that replaces every & with
&. Then wrap the incoming stream with your custom stream before
feeding it to Xerces.
Eric
ying lcs wrote:
Hi,
In my xml file, it has something like this:
<fullscreen>/FLVPlayer.swf?xml=/play_flash_xml.php?id=308088&fs=true</fullscreen>
so when i use xerces to parse the file, I got exception like this:
org.xml.sax.SAXParseException: The reference to entity "fs" must end
with the ';' delimiter.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
Is there a way to configure xerces to accept '&' in the text node ,
instead of changing the source to use '&' in the text node?
I have no control of the source, so i need to make xerces to accept '&' .
Thank you for any idea.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]