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

Re: Yet another xml::simple question

by saberworks (Curate)
on Jan 27, 2009 at 18:03 UTC ( #739272=note: print w/ replies, xml ) Need Help??


in reply to Yet another xml::simple question

Just to clarify, you're using XMLOut wrong. XMLOut takes a data structure and turns it into XML (a string). From the docs:

The default behaviour of XMLout() is to return the XML as a string. If you wish to write the XML to a file, simply supply the filename using the 'OutputFile' option.
So with the options you're using to XMLOut, you are telling it to write the XML file right away. But then after that, you're trying to mess with the data structure. What you need to do is build up your data structure first (including the time stamp there) and only then call XMLOut.


Comment on Re: Yet another xml::simple question

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2014-12-29 11:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (186 votes), past polls