in reply to Example of XML::Parse object style requested
$ perldoc XML::Parser
Second of all,
XML::Simplewill accomplish this for you and it will do so much easier. So:
And a quick synopsis:$ perldoc XML::Simple
#!/usr/bin/perl use XML::Simple; use strict; # use strict, always use strict $x = new XML::Simple(); $xref = $x->XMLin('/path/to/xmlfile'); # $xref now stores your xml in a hashref
I strongly suggest you read the docs above though because there are a few attribute options for the <text>XML::Simple</text> object that you will want to at least know about.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Example of XML::Parse object style requested
by mirod (Canon) on Apr 17, 2002 at 21:30 UTC | |
|
Re: Re: XML::Parser
by yangtse (Acolyte) on May 03, 2002 at 16:00 UTC |