A
ajm
hi,
a simple question perhaps...I am parsing an XML document
with expat (1.95.x) which has content like:
<element>text & more text E</element>
from which expat outputs something along the lines of
<element>text & more text A</element>
i.e., it resolves the entities. there are various things
I am getting expat to do for but one of the things I would
like it not to do is resolve entities, i.e., I would
have liked it to have given me back
<element>text & more text E</element>
unaltered. is there a simple concrete way that expat can
be persuaded to leave entities untouched ? (i tried
XML_SetParamEntityParsing(parser, XML_PARAM_ENTITY_PARSING_NEVER)
with XML_DTD set at compile time etc. but to no avail - perhaps
this is the wrong approach anyhow).
regards,
ajm.
a simple question perhaps...I am parsing an XML document
with expat (1.95.x) which has content like:
<element>text & more text E</element>
from which expat outputs something along the lines of
<element>text & more text A</element>
i.e., it resolves the entities. there are various things
I am getting expat to do for but one of the things I would
like it not to do is resolve entities, i.e., I would
have liked it to have given me back
<element>text & more text E</element>
unaltered. is there a simple concrete way that expat can
be persuaded to leave entities untouched ? (i tried
XML_SetParamEntityParsing(parser, XML_PARAM_ENTITY_PARSING_NEVER)
with XML_DTD set at compile time etc. but to no avail - perhaps
this is the wrong approach anyhow).
regards,
ajm.