In the mean time I have come up with this:
which gives me 'Niall'#!/usr/bin/perl use strict; use warnings; use XML::Parser; use Data::Dumper; my $p = new XML::Parser( Style => 'Tree' ); my $inputfile = "testxml.xml"; my $tree = $p->parsefile($inputfile); print $tree->[1]->[4]->[4]->[2], "\n";
As I said, need to stick with XML::Parser!
In reply to Re^2: Trees in XML
by Anonymous Monk
in thread Trees in XML
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |