in reply to Re: Trees in XML
in thread Trees in XML
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!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Trees in XML
by mirod (Canon) on Jun 03, 2008 at 14:16 UTC | |
|
Re^3: Trees in XML
by Jenda (Abbot) on Jun 03, 2008 at 22:54 UTC | |
|
Re^3: Trees in XML
by Anonymous Monk on Jun 03, 2008 at 14:07 UTC |