You might want to ask a little bit more about the problem before recommending XML::Simple. XML::Simple works great for data-oriented XML, but as soon as you have to deal with documents, that usually include mixed content (<p>this is <b>mixed</b> content</p>: text and sub-elements mixed within an element) then you just can't use it. The content field of the hash can only hold one text, not several as is the case with mixed content.
Plus what if the data to be processed is 4Gb of XML log?
That said there are no tutorials that I am aware of on the Object style of XML::Parser.
Plus XML::Parser is not really the favored way to process XML any more (read it is not actively maintained and its interface is not standard): XML::libXML, or XML::XPath, or (shameless plug!) XML::Twig are good alternatives. Plus of course XML::Simple if your XML is nice enough to fit in it ;--)
In reply to Re: Re: Example of XML::Parse object style requested
by mirod
in thread Example of XML::Parse object style requested
by yangtse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |