OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Sample expat code for reading entities?

[ Lists Home | Date Index | Thread Index ]


> I have an XML file which has a DTD (that I don't want to read) and 
> another external set of decls ref'ed from the internal subset, which 
> contains some entity declarations that I do need).  This is in C code. 
> I'm plowing through the expat docs and the write-up on things like 
> XML_SetExternalEntityHandler is giving me a headache.  I'm sure I can 
> figure it out, but are there some implementations out there to look at 
> and make this go quicker?

The expat distribution comes with the xmlwf tool (+ source code).
Have a look at xmlfile.c, specifically at function XML_ProcessFile
and the handlers that are set there.

Karl





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS