in reply to DBD:AnyData on Complex XML

What is the desired result—to have the missing attributes included?
What is your ultimate goal here? XPath may be a better tool for the job. And there's always XML::Twig :)

Replies are listed 'Best First'.
Re^2: DBD:AnyData on Complex XML
by hmadhi (Acolyte) on Nov 14, 2008 at 07:24 UTC
    What is my desired result ?
    Good Question
    Something like :
    product catalog_item item_number price size color
    ------------------------------------------------------------------------------
    By the way how do I use XPath ?
      I was trying to get at the data structure that you're after and how you want to use the data (convert it to another format, filter it, prune some of the XML, etc.).

      If you're going to query on certain conditions, you can use XPath with modules like XML::XPath and XML::Twig. If you simply want a Perl data structure, something like XML::Simple will do.

      Also see the Perl-XML FAQ.
        I want to import into a mysql database, so I would like to convert to csv.