handle added text nodes in xml

When using the level editor xml for required blocks instead of the UI, you end up with additional text nodes (I assume from the whitespace).  This means childNodes[0] doesn't get what we want.  I changed these to instead use getElementsByTagName.