in reply to Re^3: Vertical Tab (\x0b) in XML::LibXML
in thread Vertical Tab (\x0b) in XML::LibXML
So if you make two passes through libxml you get valid xml?No. I make one pass and use something (libxml in this case) to parse the result. If a result was produced, I'd expect the second tool to accept it.
Sanitizing input seems reasonable, but for such a complex data format, something like
would be handy.$text = 'XML::LibXML::Text'->removeInvalidChars($str, $version)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Vertical Tab (\x0b) in XML::LibXML
by Anonymous Monk on Jul 23, 2014 at 23:18 UTC |