Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: XML::Simple - Make arrays out of class attribute

by mscharrer (Hermit)
on Sep 14, 2008 at 20:10 UTC ( [id://711316]=note: print w/replies, xml ) Need Help??


in reply to Re: XML::Simple - Make arrays out of class attribute
in thread XML::Simple - Make arrays out of class attribute

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.

  • Comment on Re^2: XML::Simple - Make arrays out of class attribute

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://711316]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-18 08:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found