Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Parsing of an entity if it appears as an attribute value.

From: vineeth.narayanan@-----.--- (-------)
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


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent