good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: hashref with(out) arraysby bfdi533 (Friar) |
on Nov 22, 2017 at 18:11 UTC ( [id://1204054]=note: print w/replies, xml ) | Need Help?? |
Ok, so taking a stab at XML::Rules and the first thing I find in my XML is a namespace tag prefixed on all of my data elements.
In my rules, do I refer to this tag as "ns2:Height" or as "Height" somehow accounting for the namespace? Update: And do I need to deal with every tag in the XML? For example, if my XML is:
Can I have rules that just deal with Height, Length, Width, Weight, etc? Or do I have to have rules for Item and Attributes to get to the other attributes? I am unclear from reading the XML::Rules documentation. The example has a _default tag which looks like it is supposed to deal with all items not otherwise specified but so far, I am only getting Item in my output as:
The rules that I am using are:
In Section
Seekers of Perl Wisdom
|
|