purge has asked for the wisdom of the Perl Monks concerning the following question:
Now I can get out all the information fine no problem, but I want to add a new 'field' inside 'page' i.e:<form> <page id="0"> <field name="alpha">123</field> <field name="beta">234</field> </page> <page id="1"> </page> </form>
now how do I do this with XML::XPath? using setNodeText, what XPath do I use?<code> <form> <page id="0"> <field name="alpha">123</field> <field name="beta">234</field> <field name="gamma">345</field> </page> <page id="1"> </page> </form>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) Re: XML::XPath adding new nodes
by jeffa (Bishop) on Mar 04, 2003 at 13:57 UTC | |
by purge (Acolyte) on Mar 04, 2003 at 14:44 UTC | |
by purge (Acolyte) on Mar 04, 2003 at 16:25 UTC |