Re: copying nodes from one xml file to an other
Kristian Kankainen <[email protected]>
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Message-ID | <[email protected]> |
Tere Miikael! > Take a look at *importNode* and *adoptNode* in XML::LibXML::Document. This I allready did, but doesn't seem to work with XML::LibXML::Reader nodes, eg $outxml->adoptNode( $reader->copyCurrentNode ); doesn't seem to do anything (not even a warning or error) Kristian K 2010/4/6 Michael Ludwig <[email protected]>: > Moin Kristian, > > Kristian Kankainen schrieb am 06.04.2010 um 22:07:23 (+0300): >> >> I would like to merge information from an external text file (a Praat >> TextGrid for the curious) into existing XML files, changing it's >> element structure. To do this, I thought of iterating through the XML >> file, and match some elements to the TextGrid, and bring back the >> information found from the matching into (a possible new) XML file. I >> have succesfully created the "iterators" for both file types, and now >> here's the problem: >> >> using XML::LibXML * how do i copy a node from one DOM to an other? > > Take a look at *importNode* and *adoptNode* in XML::LibXML::Document. > > -- > Michael Ludwig > _______________________________________________ > Perl-XML mailing list > [email protected] > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs > _______________________________________________ Perl-XML mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs