Hi,
A line break (return) in your xml gives a extra node. This is called white space nodes you have to skip these nodes. John --- In [email protected], Rerun <[EMAIL PROTECTED]> wrote: > I added a while loop that throws me for a loop, no pun intended. > > <svg id="svg"> > <g id="state"> > </g> > <g id="cntry"> > <g id="sean"> > </g> > </g> > <g id="nps"> > </g> > <g id="wtr"> > </g> > </svg> > > //parse content of the XML format to the variable "node" > var node = parseXML(data.content, document); > > //New While loop. > var child = node.firstChild.firstChild; > while (child != null) { > alert(child.nodeType); //Returns 3,1,3,1,3,1,3,1,3 > child = child.nextSibling; > } > Why the 5 node type #3s? Is there any good reference on this topic? I > have only found parseXML references that only superficially cover the topic. ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

