On Wed, Apr 25, 2007 at 02:53:48PM -0600, Dan McRae wrote:
> How do I pass return/error codes from startElement() and endElement() up  
> to xmlSAXUserParseFile()? xmlSAXUserParserFile() returns an int but  
> startElement() and endElement() both return void.

  You can't. That error can't be a parsing error, so it should not affect
the parser. If you want to stop parsing use xmlStopParser() . 
People, DO NOT USE SAX, unless you really have a really good reason 
to do so, use the reader instead you will avoid most of the mess.

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
[EMAIL PROTECTED]  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to