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?!

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. :-)

    -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.";