findNode and getAttributeValue functions implemented