in reply to hash XML rounding trip

Try GroupTags => { g => 'element' } and see if that helps. Also, what does with no success mean? How was the second attempt (which is very similar to my suggestion) not successful? What didn't it do that you thought it should?

------
We are the carpenters and bricklayers of the Information Age.

Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

I shouldn't have to say this, but any code, unless otherwise stated, is untested

Replies are listed 'Best First'.
Re^2: hash XML rounding trip
by arcnon (Monk) on Aug 27, 2004 at 13:50 UTC
    GroupTags => { '' => 'g' } this produced 2 'g' records with 1 array item in each
    GroupTags => { 'g' => 'select' } <g> <select> <high>3</high> <low>3</low> <percent>30</percent> <select>any</select> </select> </g>
      First off, it's really helpful if you provide output that correlates to your input. Otherwise, I can't see if there's anything wrong. Remember - I have absolutely no information save for what you give me. If that information comes from two sources, I can't make heads or tails of it.

      Second - I would try the second option with more than one element in the array and see what the XML looks like. I suspect that it will be doing what you want it to do.

      ------
      We are the carpenters and bricklayers of the Information Age.

      Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

      I shouldn't have to say this, but any code, unless otherwise stated, is untested