Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: XMLout and keys/attributes

by atreyu (Sexton)
on May 09, 2012 at 15:29 UTC ( #969647=note: print w/ replies, xml ) Need Help??


in reply to Re: XMLout and keys/attributes
in thread XMLout and keys/attributes

Arggg! I just looked at the original code again, and I realized I screwed up the description of the XML. here is the correct $userref example:

$userref->{0}{'hash'}{'Name'} = 'joe'; $userref->{0}{'hash'}{'Type'} = 'user'; $userref->{0}{'hash'}{'1Param'} = 'foo';
and here is what I need the XML to look like:
<key0> <devices> <dev0> <param id="Name">joe</param> <param id="Type">user</param> <param id="1Param">foo</param> </dev0> </devices> </key0>
btw, your code suggestion was very close sauoq, care to try again?!


Comment on Re^2: XMLout and keys/attributes
Select or Download Code
Re^3: XMLout and keys/attributes
by sauoq (Abbot) on May 09, 2012 at 15:32 UTC
    btw, your code suggestion was very close sauoq, care to try again?!

    I already did. See my update? ;-)

    P.S. It should work with three params as well as two, so your "arrrggg" isn't needed. :-)

    -sauoq
    "My two cents aren't worth a dime.";
      sauoq, your two cents are so money! you nailed it, thank you!

        Glad to help. :-)

        -sauoq
        "My two cents aren't worth a dime.";

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2015-07-05 15:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls