in reply to One more XMl Question
XML::Twig is object-oriented. first_child is a method which returns a handle to something. To get the value of the child element, you need to use the text method:
print "NAME: " . $install->first_child('name')->text() . "\n";
which prints:
NAME: TEST
There is a nice XML::Twig tutorial at http://www.xmltwig.com/xmltwig/, along with a handy reference page of all the methods.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: One more XML Question
by Anonymous Monk on Oct 08, 2008 at 19:33 UTC |