Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Which module to use for writing XML file?

by idsfa (Vicar)
on Mar 25, 2006 at 06:31 UTC ( #539155=note: print w/ replies, xml ) Need Help??


in reply to Which module to use for writing XML file?

XML::Dumper, XML::Writer, XML::Writer::Simple ...

# example using XML::Dumper use XML::Dumper; my $dump = new XML::Dumper; my $perl = ( # some perl data structure ); $dump->dtd( $file, $url ); my $xml_with_link_to_dtd = $dump->pl2xml( $perl ); # example using XML::Writer::Simple use XML::Writer::Simple dtd => "file.dtd"; print para("foo",b("bar"),"zbr"); # Asuming para. etc are defined in the DTD

XML::Dumper has the advantage of providing both read and write interfaces ...


The intelligent reader will judge for himself. Without examining the facts fully and fairly, there is no way of knowing whether vox populi is really vox dei, or merely vox asinorum. — Cyrus H. Gordon


Comment on Re: Which module to use for writing XML file?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2014-07-13 13:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (249 votes), past polls