Hi Curtis, An & begins character references and entity references and must be escaped to be treated as part of content. In general, < must also be escaped. There are predefined entities for both these characters as well as ', ", and >. See the XML specification [1].
[1] http://www.w3.org/TR/REC-xml#sec-predefined-ent On Fri, 19 Dec 2003, Curtis Leach wrote: > In parsing some XML documents, I'm getting the following SAXParseException > error when parsing my XML document. > > "Expected entity name for reference" > > After some research I tracked it down to the following tags. > <cust_name>CABLE & WIRELESS</cust_name> > > My trace showed: > startElement (cust_name) > characters (CABLE , 6) > The exception is thrown by Xercesc before control is returned on the next > call. > > My question is: is the "&" a special char in XML ? If so, where can I find > a list of special chars in XML? And how do I escape them so that they are > allowed in an XML document. > > Curtis > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------- Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
