hemanexp
asked on
Promblem while parsing the XML
Hi,
I got the follwoing error while parsing the XML file.
[Fatal Error] :2:2325: The entity name must immediately follow the '&' in the entity reference.
Exception: org.xml.sax.SAXParseExcept ion: The entity name must immediately follow the '&' in the entity reference.
My XML has a tag called <company_name> which contains & symbol like "ABC & Co".
How can i resolve it.
Thanx in advance.
I got the follwoing error while parsing the XML file.
[Fatal Error] :2:2325: The entity name must immediately follow the '&' in the entity reference.
Exception: org.xml.sax.SAXParseExcept
My XML has a tag called <company_name> which contains & symbol like "ABC & Co".
How can i resolve it.
Thanx in advance.
you have to replace & by &
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Or enclose the expression with CDATA:
<param name="expression"><![CDATA [ myURL.indexOf('&') > 0 ]]</param>
This might be a better solution as it will catch ANY characters that will cause this problem
such as &, >, <, etc..
Cheers,
Leo
<param name="expression"><![CDATA
This might be a better solution as it will catch ANY characters that will cause this problem
such as &, >, <, etc..
Cheers,
Leo