- or download this
<root>
<parent>p1 p2 <ch1>c1_1</ch1> p3 <ch2>c2</ch2> p4 <ch1>c1_2</ch1> p5
+</parent>
</root>
- or download this
'root' => {
'parent' => [
...
}
]
}
- or download this
my $parser = XML::Rules->new (
rules => [
...
]
);
my $result = $parser->parsestring($xml);
- or download this
# different Rule for "parent"
parent => sub {$_[0]->{text} => $_[1]->{_content}},