![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Parsing of an entity if it appears as an attribute value. Parsing of an entity if it appears as an attribute value.To: NULL Date: 11/1/2004 10:26:00 PM Hi, I am developing an application using the SAX interface provided by "xerces-j 2.6.0". My application does not need a DTD for execution as it is not supposed to perform any validation. I have to provide customized entity processing for which I have implemented the startEntity function of the LexicalHandler interface. The problem that I am facing is with respect to any entity other than the 5 builtin ones. If any entity for example &abcd; which is not a built-in entity is specified in the content of any element then it gets successfully processed using the customized entity resolution provided in the startEntity function, but if the same entity occurs in the value of an attribute then it is not getting processed. In such cases the startEntity function is also not getting called. On looking up the value of the attribute in the startElement callback, I found that the entity is not being passed on instead it is being consumed. Only the five built-in entites if they are present are returned back in the call-back. I would be grateful if anybody can suggest a solution for this peculiar problem. Thankx, Vineeth | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
