Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Problems? Is your data what you think it is?
 
PerlMonks  

XML::Simple design decisions

by grantm (Parson)
on Nov 09, 2002 at 07:26 UTC ( #211626=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      <person>
        <firstname>Bob</firstname>
    ...
        <dob>18-Aug-1972</dob>
        <hobby>Fishing</hobby>
      </person>
    
  2. or download this
      <person firstname="Bob" surname="Smith" dob="18-Aug-1972" hobby="Fis
    +hing" />
    
  3. or download this
      <person firstname="Bob" surname="Smith" dob="18-Aug-1972">
        <hobby>Fishing</hobby>
        <hobby>Trainspotting</hobby>
      </person>
    
  4. or download this
      my $person = XMLin($filename)
    
  5. or download this
      {
        firstname => "Bob" ,
    ...
        dob       => "18-Aug-1972", 
        hobby     => "Fishing",
      }
    
  6. or download this
      {
        firstname => "Bob" ,
    ...
        dob       => "18-Aug-1972", 
        hobby     => [ "Fishing", "Trainspotting" ]
      }
    
  7. or download this
      my $person = XMLin($filename, forcearray => 1)
    
  8. or download this
      {
        firstname => [ "Bob" ],
    ...
        dob       => [ "18-Aug-1972" ], 
        hobby     => [ "Fishing" ],
      }
    
  9. or download this
      {
        firstname => "Bob",
    ...
        dob       => "18-Aug-1972", 
        hobby     => [ "Fishing", "Trainspotting" ],
      }
    
  10. or download this
      my $person = XMLin($filename, forcearray => [ 'hobby' ])
    
  11. or download this
      {
        firstname => "Bob",
    ...
        dob       => "18-Aug-1972", 
        hobby     => [ "Fishing", "Trainspotting ],
      }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://211626]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (18)
As of 2014-04-16 17:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (433 votes), past polls