Look carefully at the line where you assign to elementCount. When I corrected that line, it ran correctly, giving an element count of 4:
elementCount = my_nodes.getLength(); -Rob >I tweaked the MemParse sample to use the DOMParser, but I'm still not able >to retrieve any nodes by calling doc.getElementsByTagName().