1 Reply Latest reply on Sep 29, 2009 6:40 AM by larry_schwartz

    How to parse a XML file where tags have a underscore in them

    KalavatiSingh Level 1

      Hi,

          As per my current requirement I have a XML file where the tag names ( tags ) have a underscore in them like

      <root>

      <name_get>100<name_get>

      <name_set>200<name_set>

      </root?

           Can any let me know the following

       

      1) Can I read /parse such a XML file in Flex( is it possible)

       

      2) If yes How. Can any one forward me with example/docs/suggestions

       

       

       

       

       

      Regards

      Kalavati Singh

      kalavati_singh@yahoo.co.in

        • 1. Re: How to parse a XML file where tags have a underscore in them
          larry_schwartz Level 1

          I use XML files with underscores in the node names all the time.

           

          In what context are you reading the files?  For example, if you're using an HTTPService object with a resultFormat of XML, and you databind an object to the lastResult of the HTTPService, the file gets parsed automagically (you have to setup a few things properly, but it's almost as simple as I describe).

           

          Do you need to manually parse the file?  If so, look into the XML, xmlList, Array and ArrayCollection datatypes.

           

          It'll be easier to help if you give an example of what you need to do.