Expat & internal entities
Aurenz, Scot
SAurenz at Rational.Com
Fri Jan 28 19:04:01 GMT 2000
> -----Original Message-----
> From: Christian Hammond [mailto:chipx86 at portaldesign.net]
> Sent: Friday, January 28, 2000 5:05 AM
> To: xml-dev at ic.ac.uk
> Subject: Expat & internal entities
>
>
> I have been working on this problem for a few hours now, and
> haven't gotten
> much further. When something like < or is parsed in
> expat, I want
> to be able to recieve it and do what I want with it. I can
> capture
> by using XML_SetDefaultHandler(), but the <, >, &,
> and ' don't
> get captured. They automatically get transformed to <, >, &, and ".
>
> What can I do about this? It is pretty important for my
> parser, and I don't
> feel like hacking the expat source code :)
Do you have a CharacterData handler defined? If so, I think
that is your problem. You need to handle everything through
the DefaultHandler instead.
I have this problem as well. When I traced thru the expat
code, I found that it translates these entities if there
is a CharacterData handler defined. By getting rid of this
handler, it should give you the raw entities in the DefaultHandler.
(I say "should" because I haven't implemented the fix myself yet,
but this is what I'm planning to do...)
--Scot
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ or CD-ROM/ISBN 981-02-3594-1
Unsubscribe by posting to majordom at ic.ac.uk the message
unsubscribe xml-dev (or)
unsubscribe xml-dev your-subscribed-email at your-subscribed-address
Please note: New list subscriptions now closed in preparation for transfer to OASIS.
More information about the Xml-dev
mailing list