[libxml-devel] Guaranteed non-crashing way to load an XML document?
Saurabh Nanda
saurabhnanda at gmail.com
Tue Feb 5 11:32:00 EST 2008
> Well, we might have different opinions on what libxml should do with bad input
> (I agree that segfaulting isn't very nice). That said, I can't imagine parsing
> bytes in the wild as "xml" and not doing a lot of error handling.
Will putting the code snippet in a begin-rescue block help? I'll do
that right away, but a begin-rescue block will help only if libxml
doesn't segfault. I hope the segfault is not due to the way I'm
parsing the XML. WIll using XML::Document.parse(xml) help?
Saurabh.
--
http://nandz.blogspot.com
http://foodieforlife.blogspot.com
More information about the libxml-devel
mailing list