From: Andreas L. <no...@sb...> - 2001-10-18 04:53:34
|
On Thu, Oct 18, 2001 at 12:43:47PM +1000, Glenn Maughan wrote: > >The idea is that the eiffel parser and the expat parser behave exactly >the > > > >same > >(except for bugs and unimplemented features). It is even possible to > >>switch from > >one implmentation to the other at runtime. Namespace handling is done >in > >the > >tree parser and thus is supported by both the eiffel and expat backend >if > >used > >via the tree interface. > > > >Andreas > > Great. I'll give it a try. > > When using expat I had to manually register for certain events to be sent > using code like: > > -- register callback handlers > exml_register_XML_SetElementDeclHandler (item) > exml_register_XML_SetAttlistDeclHandler (item) > exml_register_XML_SetXmlDeclHandler (item) > exml_register_XML_SetEntityDeclHandler (item) > exml_register_XML_SetElementHandler (item) > exml_register_XML_SetCharacterDataHandler (item) > > Do I still need to do something like this? No, you don't. But please be aware that the Eiffel parser is really bare bones at the moment. For example DTD Declarations do _not_ work yet. regards, Andreas |