Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - entities in attribute values [Thread Next] Re: entities in attribute valuesTo: NULL Date: 1/12/2009 7:50:00 PM luca wrote: > Hi, I just figured that XML is touchy about using entities in attribute > value even for super-simple XML files with no DTD: > > <elem name="entity_euro" value="€"/> > > Caused by: org.xml.sax.SAXParseException: The entity "euro" was > referenced, but > not declared. > at > org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1189) > > > > is there a standard way to escape entities in XML? This did the trick: <elem name="entity_euro" value="&euro;"/> Thanks Luca | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
