in reply to XML::Parser and white spaces
There is no way with XML::Parser. Most XML modules will include whitespace in the data they create, as there is no way for the parser to know whether it's significant or not (whitespace in pre tags is significant in XHTML for example).
You can deal with this by using XPath to navigate the XML structure (with XML::XPath or XML::libXML), some "Perlish" modules, like XML::Simple or XML::Twig will also remove the whitespaces.
|
|---|