Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
<foo>
<bar>7</bar>
<baz>
<blah>12</blah>
</baz>
</foo>
I'd like to be able to create an object that represents this such that
$self->bar()returns 7 and
$self->bar(12)will change the value of bar and write the new xml to disk. I'm happy to provide some sort of mapping so
$self->bazwould do as expected. Is there an existing (combination of) modules to do this? I'm using moose if that would help
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XML file and objects
by jeffa (Bishop) on Jan 19, 2009 at 15:11 UTC | |
|
Re: XML file and objects
by stvn (Monsignor) on Jan 19, 2009 at 15:57 UTC | |
|
Re: XML file and objects
by zwon (Abbot) on Jan 19, 2009 at 13:49 UTC | |
|
Re: XML file and objects
by dHarry (Abbot) on Jan 19, 2009 at 14:19 UTC |