|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Re: Adding Elements to XMLby Anonymous Monk |
| on Nov 21, 2012 at 12:27 UTC ( #1004908=note: print w/ replies, xml ) | Need Help?? |
|
Also, generally speaking, use XPath expressions to navigate an XML structure, not hard code. The day will come when you have a structure to deal with that is not-quite what your code was hard-coded to expect. Therefore, as a general approach to this problem, use XPath to find the node(s) you want, then modify them.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||