Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

XML::Simple design decisions

by grantm (Parson)
on Nov 09, 2002 at 07:26 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://211626]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-24 22:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found