Util for finding XML nodes by key="value"

Added function getElem() for finding a child node with a given
key="value" pair. Added a bit more to the base.xml file