good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Parsing XML??? is amongst several posts I have seen on PerlMonks asking how to extract information from an XML file. To have an idea on how to perform that kind of common task, you might want to have a look at Ways to Rome, an article I maintain that lists a whole bunch (16 at the time of writing) of ways to do this kind of extraction/reporting. And please, _DO NOT USE THE REGEXP METHOD_ (was that strong enough?). For your own good. Note that the article does not include XML::Simple, as the XML document (the XML Spec itself) includes mixed content (and no, I did not choose the document on purpose, in fact I inherited the article from Ingo Macherius ;--). If XML::Simple can process your document, then by all means use it. Contributions are welcome BTW: a version using an as-generic-as-possible entity pre-processor, or a patch to the module, would allow me to include XML::SAX::PurePerl for example, XML::GDOME and XML::SAX::Machines, or princepawn's favorite could also be added. In reply to XML Examples (and a call for participation) by mirod
|
|