Vyacheslav Karamov пишет:
Hi All!
I need to parse XML with XML::Parser::Expat and make XML tree with
Tree::Simple.
But I need to store tag value and its attributes. But
Tree::Simple->setNodeValue() accepts single scalar (value itself).
How to create something like this?
struct
{
$value;
%attributes;
} $nodeValue;
Tree::Simple->setNodeValue( $nodeValue);
The pseudo code above shows what I actually need. But I don't know
how to implement it.
I tried pseudo hash
my $nodeValue = [ $value, %attributes ];
but I have no idea how to get access to $value and %attributes via
$nodeValue;
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/