I'm trying to port a project from .8 to 1.0 and I'm having trouble with XML parsing which was working previously. So I have something like this:
var root = xml.getElementsByTagName('rss'); var channel = root.getElementsByTagName("channel"); var title = channel.getElementsByTagNameNS(''condition'); var value = title.getAttribute("temp");I used this sort of thing to drill down into XML before, and now from what I can gather with debugging, it's failing after the first tier of sorting -- i.e. it breaks before setting var = channel.
I have encountered a problem where the getElementsByTagName will only return a valid list if the tag is a child of the parent node. My report of this is here: http://developer.appcelerator.com/question/91/getelementsbytagname-issue It sounds like the same issue to me, let's hope that we get some confirmation from the developers. Regards Mark
Might this be because of the double ' ' in the third line? Should that not be a single quote?
Think you can help? Login to answer this question!