in reply to Problem saving XML

You likely want to read up on the SuppressEmpty option, and maybe restructure your data structure so that XML::Simple recognizes that nextSessionID should be a tag, not an attribute. Maybe KeyAttr is the relevant thing to use there.

Replies are listed 'Best First'.
Re^2: Problem saving XML
by rpike (Scribe) on May 11, 2012 at 16:27 UTC
    Thanks for the info. Any chance you could put an example of what you're referring to? I'm trying some stuff but nothing seems to be working. Also, why would the mainTag go missing altogether? I haven't touched this in a long time and even then I haven't done much with it. Any further help you can give would be much appreciated. Thank-you.