To introduce ampersand character in the text node, it must be written as &

If you write something as, ... &fs ... then &fs is interpreted as
entity reference (and the entity must be defined somewhere). That's
how the XML spec defines the language.

On Feb 19, 2008 10:50 AM, ying lcs <[EMAIL PROTECTED]> 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 '&amp;' in the text node?
>
> I have no control of the source, so i need to make xerces to accept '&' .
>
> Thank you for any idea.



-- 
Regards,
Mukul Gandhi

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

Reply via email to