good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
copyCurrentNode in XML::LibXML::Reader will add xmlns attributeby mjfan (Novice) |
on Sep 15, 2017 at 02:23 UTC ( [id://1199434]=perlquestion: print w/replies, xml ) | Need Help?? |
mjfan has asked for the wisdom of the Perl Monks concerning the following question: I read some large XML using XML::LibXML::Reader and want to write out some element interested. I call print $reader->copyCurrentNode. But I got xmlns attribute for every element I copied. In original XML, this attribute only appear on the root. I don't want this extra attribute thousands of times. How can I simply remove them? Is there any option to the parser?
Back to
Seekers of Perl Wisdom
|
|