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?
|
|---|