Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: XML::Simple - data storage/retrieval

by moritz (Cardinal)
on Sep 05, 2008 at 10:18 UTC ( [id://709229]=note: print w/replies, xml ) Need Help??


in reply to XML::Simple - data storage/retrieval

How can I get rid of the <anon>?

By not storing the hash in an array:

use strict; use warnings; use XML::Simple; my $d = {'Phones' => [ { 'Manufacturer' => 'somebody', 'Model' => 'something', }]}; my $xml = new XML::Simple(NoAttr=>1,RootName=>'terminalversioncount'); print $xml->XMLout($d); __END__ <terminalversioncount> <Phones> <Manufacturer>somebody</Manufacturer> <Model>something</Model> </Phones> </terminalversioncount>

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-19 18:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found