go ahead... be a heretic | |
PerlMonks |
Re: XML::Twig and Processing Instructionsby mirod (Canon) |
on Mar 19, 2009 at 16:45 UTC ( [id://751785]=note: print w/replies, xml ) | Need Help?? |
By default the PIs are "hidden" in the text (in fact the text of the element doesn't even include the PI). In order to get 3 children, you need to use the pi => 'process' option when you create the XML::Twig object. See the pi option doc. You can then even set a handler on the PIs
In Section
Seekers of Perl Wisdom
|
|