For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > July 2006 > XML: :Simple-handling {changing element name}









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author XML: :Simple-handling {changing element name}
Bw

2006-07-26, 6:57 pm

How (assuming it does) does XML::Simple deal with an
XML element whose value changes throughout the course
of the Dumper output?

XML::Simple code snippet:
$data->{dataschemas}->{dataschema}{changing element
name}->{attributes}->{attribute}}

Dumper output snippet:

(format adjusted for brevity):
{
'dataschemas' => {
'dataschema' => {
'changing element name' => {
'attributes' => {
'attribute' => { [
... attributes here
....
}
}
}
}
}
}

If XML::Simple isn't the right module for the task,
which is a better one? I looked at the 'where to from
here?' section of the XML::Simple doc to answer this,
but none of the modules briefly described there seem
to be likely choices at this point.

Thanks,
BW

________________________________________
__________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com