more useful options | |
PerlMonks |
Re^2: XML::Simple - Make arrays out of class attributeby mscharrer (Hermit) |
on Sep 14, 2008 at 20:10 UTC ( [id://711316]=note: print w/replies, xml ) | Need Help?? |
Thanks ikegami for your answer. I was trying to avoid doing the transformation by myself. There are already a lot of XML::Simple options which change the structure of the returned hash, i.e. do some form of transformations, so I thought there might be one for this case also. For example if the class would be unique for every div the 'KeyAttr' options would do exactly what I want. You are right that the XML code doesn't represent the data correctly. That's because it's XHTML of a webpage where I don't have any influence. It was written for display by a web browser not as a XML database. Thanks for your code. I starting to think that I will need it.
In Section
Seekers of Perl Wisdom
|
|