[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Expat & internal entities

  • From: "Aurenz, Scot" <SAurenz@R...>
  • To: "'Christian Hammond'" <chipx86@p...>, xml-dev@i...
  • Date: Fri, 28 Jan 2000 13:52:49 -0500

expat apos

> -----Original Message-----
> From: Christian Hammond [mailto:chipx86@p...]
> Sent: Friday, January 28, 2000 5:05 AM
> To: xml-dev@i...
> 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 &lt; or &nbsp; is parsed in 
> expat, I want
> to be able to recieve it and do what I want with it. I can 
> capture &nbsp;
> by using XML_SetDefaultHandler(), but the &lt;, &gt;, &amp;, 
> and &apos; 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@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ or CD-ROM/ISBN 981-02-3594-1
Unsubscribe by posting to majordom@i... the message
unsubscribe xml-dev  (or)
unsubscribe xml-dev your-subscribed-email@your-subscribed-address

Please note: New list subscriptions now closed in preparation for transfer to OASIS.



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.