Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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
Replies are listed 'Best First'.
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. :-)

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

        Glad to help. :-)

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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2016-02-09 04:45 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (301 votes), past polls