Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Parsing XML data and injecting it into new file

by hosselausso (Initiate)
on Sep 05, 2021 at 15:46 UTC ( [id://11136468]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    <testsuites>
      <testsuite name="test_suite_name" ...>
    ...
        <testcase name="test2" .../>
      <testsuite name="some_name" ...>
    </testsuites>
    
  2. or download this
    my $dom  = XML::LibXML::Document->new('1.0', 'utf-8');
    my $xml1 = XML::LibXML->load_xml(location => 'file1.xml');
    ...
    open XML, ">result.xml";
    print XML $dom->toString();
    close XML;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11136468]
Approved by haukex
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-03-29 05:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found