Problem parsing XML containing "&" character ...

"Yethadka, Venkateshwara P (Prasad), ALABS" <[email protected]> Mon, 7 Jul 2003 10:17:31 -0500
Newsgroups gmane.text.xml.sax.general
Message-ID <89D097CC1D003643BB9F13714BA9723B04C7D5D7@OCCLUST01EVS1.ugd.att.com>
Hi:
I get the following exception while trying to parse a XML document (non-validating parsing) that
contains "&" character (as in AT&T) in the value for some element -
for example: <name>AT&T Dev Center</name>

Is this a SAX bug or is there a feature/property/method I can use to parse the above
XML string without errors? It seems like that the parser assumes that the char "&"
is used for encoding special chars and hence expects a ";" after that.

Thanks for help.

Prasad

Here is the exception:

		org.xml.sax.SAXException: Stopping after fatal error: The reference to entity "T
		" must end with the ';' delimiter.
		        at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1245
		)
		        at org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XM
		LDocumentScanner.java:579)
		        at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.disp
		atch(XMLDocumentScanner.java:1257)
		        at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
		canner.java:381)
		        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)

		 



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
List: [email protected]
See:  http://www.saxproject.org
https://lists.sourceforge.net/lists/listinfo/sax-users