1 Reply Latest reply on Dec 29, 2009 12:25 AM by ForestDemon

    How to make an explicit closing tag in XML(e4x).

    ForestDemon Level 1

      I'm working with some XML data and I'm having trouble forcing the way my closing tags are generated.


      I want the long hand form, such as:

      var xmlData:XML =






      But when I try to insert nodes within the codeSnippet node as child nodes(<snippet />, etc.), and then write to a file, it

      makes the codeSnippet node look like <codeSnippet /> and the <snippet /> nodes are after, which will not work.


      How can I make it NOT treat an empty node as  <codeSnippet /> and explicitly keep it as in long hand form, such as: