1 Reply Latest reply on Jun 27, 2007 7:15 AM by

    using odd xml tags

    mcqueenorama
      I have a piece of xml and I can get a hold of it with a "var myXML:XML = new XML(e.data)", so I was planning on using it with this cool technique myXML.tag1.tag2 etcetera. The problem is that one of the tag names in the XML has a dash, so I can't use it in my code - it looks like a minus sign to the compiler! This "myXML.tag1.tag-two" does not work! What do I do now? What's the best way to access my XML? The XML is kind of like this:

      <tag1>
      <tag-two>
      stuff
      </tag-two>
      </tag1>