Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

How to use perl to parsing a XML file to csv file which have the same sequence in xml file?

by carol.j (Initiate)
on Jun 14, 2012 at 10:05 UTC ( [id://976168]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     
       <book>
          <author>Book 1 author 1</author>
    ...
          <title>Book 1 title</title>
          <isbn>Book1ISBN</isbn>
       </book>
    
  2. or download this
     #!/usr/bin/perl
    
    # Script to illustrate how to parse a simple XML file
    ...
    my $booklist = XMLin('booklist.xml');
    
    print Dumper($booklist);
    
  3. or download this
    $VAR1 = {
              'book' => {
    ...
                        }
    
            }
    
  4. or download this
    $VAR1 = {
              'book' => {
    ...
                                                                  }
    
            }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-25 13:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found