in reply to Perl and XML

I don't remember anything in the XML spec that would preclude a tag named <1>, but this was several years ago.

As for your problem, just transform the hash first before passing it to the XML writer. It's just a simple data structure manipulation.


My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?

Replies are listed 'Best First'.
Re^2: Perl and XML
by Bugz (Acolyte) on Apr 29, 2008 at 17:35 UTC
    Hey dragonchild,
    I am unsure what you meant by manipulating the data structure... Could you elaborate it please?
    Also, the Hash that I have can't be changed. It's the input from another source.
    Bugz
      I didn't say change the source - I said to change your hash. Just cause you change an in-memory data structure doesn't mean anything to the place you got it from.

      As for transforming it, what would happen if you were to take the Values section and make it look more like what you want it to look like? That would be transforming it.


      My criteria for good software:
      1. Does it work?
      2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?