At 10:33 AM 4/5/2006 +0200, Malcolm MacLeod wrote:
Okay thanks, ive just disabled the expansion with a quick hack to
IGXMLScanner2.cpp for now...
If anyone does discover a better way to do this please let me know :)
This could be done with the DOMParser (attribute values can be
populated with a mix of text nodes and entity references, but Xerces
currently doesn't support it), but cannot be done with SAXParser, as
the SAX specs design a callback function that only has a single
string for the attribute value.
Alberto
----- Original Message -----
From: "Alberto Massari" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, April 04, 2006 1:37 PM
Subject: Re: how to not expand attribute entity references?
> Hi Malcom,
> unfortunately entity expansion inside attribute values cannot be
> disabled (not even in the DOM parser).
>
> Alberto
>
> At 12:35 PM 4/4/2006 +0200, Malcolm MacLeod wrote:
> >I still need help with this, its quite urgent... can anyone give me any
> >ideas?
> >----- Original Message -----
> >From: "Malcolm MacLeod" <[EMAIL PROTECTED]>
> >To: <[email protected]>
> >Sent: Thursday, March 30, 2006 11:37 AM
> >Subject: how to not expand attribute entity references?
> >
> >
> >Hi, im using the sax2reader to parse an xml document.
> >
> >When my startElement() function gets called and i read teh attributes in
my
> >program entity references are being expanded.
> >
> >eg /
> ><Foo Bar="©">
> >
> >is coming through as a copyright symbol, i need it to come through as is,
> >How can i disable this expansion?
> >
> >I have seen this option in the dom parser but I can't find it for the sax
> >parser.
> >
> >Please help, thanks.
>
>