0 Replies Latest reply on Oct 22, 2007 7:44 AM by smcaulif

    XML to array, data types

    smcaulif Level 1
      I've been creating Arrays from XML documents and I think I'm missing something with how the values are typed. For instance, if I create an Array from a simple XML structure like:


      When I populate the Array with these values, sometimes they act like numbers but sometimes they don't. For instance, I can set a Number variable equal to one of these values and it seems to work. But if I try to add or subtract I get the non a number thing. Also, if I run a typeof() on these, they are objects, not numbers.

      So I may have answered my own question here, but can anyone confirm - do I need to indicate the data types when they get put in the Array? How would I do that? Thanks in advance.