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

Re^4: Which XML module to use for this scenario?

by Perllace (Acolyte)
on Apr 23, 2011 at 13:27 UTC ( [id://900972]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Which XML module to use for this scenario?
in thread Which XML module to use for this scenario?

thanks wind.. this works.. but the user would have to specify the values of tags as an when he is scripting.. and therefore I cannot hard code the values inside the tag.. for this purpose..I have something like..
$xml = { Parameter => [] }; push( @{ $xml->{Parameter} } , { key => $hash->{Key}, content => $hash->{Value} } );
but this prints something like
<Parameter key="ID1">Some Process a</Parameter> <Parameter key="ID2">Some Process b</Parameter> <Parameter key="ID3">Some Process c</Parameter>
if I also want the ParameterGroup ID to be given by the user how can i do it..

Replies are listed 'Best First'.
Re^5: Which XML module to use for this scenario?
by wind (Priest) on Apr 23, 2011 at 15:49 UTC
    Then don't output the xml until the user has specified the complete data set, and translate it just like I showed.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-03-19 06:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found