[libxml-devel] Guaranteed non-crashing way to load an XML document?
Saurabh Nanda
saurabhnanda at gmail.com
Tue Feb 5 10:20:41 EST 2008
I have a long running RESTful web service that needs to read XML
documents from HTTP content bodies. I've noticed lots of instances
where it has randomly crashed due to an error in libxml.
I came across the following post while digging for some clues:
http://rubyforge.org/pipermail/libxml-devel/2007-November/000586.html
Is there a preferred (guaranteed to not crash) way of parsing XML
strings in libxml? Here's what I'm doing:
parser=XML::Parser.new
parser.string= content
xml = parser.parse
Is there a better way? I've attaced the error log, just in case it helps.
Saurabh.
--
http://nandz.blogspot.com
http://foodieforlife.blogspot.com
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: crash-log-for-libxml.txt
Url: http://rubyforge.org/pipermail/libxml-devel/attachments/20080205/6695e4de/attachment-0001.txt
More information about the libxml-devel
mailing list