parsing xml and e4x support
Hi - i tried to post this earlier but it didn´t seem to take. Hopefully it works this go round...
I am new to jquery/javascript coming from a as3 background. and i am trying to figure out the best way to parse my xml...
i absolutely love e4x, cant really imagine living without it, but i´ve seen a bunch of stuff that says it doesn´t work on explorer. obviously if i need some nodes from an xml file it does me no good to do it twice - once for explorer and once for other browsers - so i am stuck doing it the old fashion way.
is there a way to make e4x work across browsers? - to be clear i am not wanting to directly display the xml file i just want to select particular nodevalues...
--- as a related question... assuming i am stuck what is the best way to parse the xml. for instance say i had,
<root>
...
<text> // << i am calling this the "text node"
<width/>
<height/>
<text/> // << i am calling this the "text child node"
</text>
...
</root>
its seems that something like,
thexml.getElementsByTagName("text") returns both the "text nodes" and the "text child nodes" . this is annoying.
how do i do the equivalent of
thexml.text and thexml.text.text ???
thanks!
brook