if child.nodeType == child.ELEMENT_NODE and child.nodeName == "ref":
text += getTextValue(child)
if child.nodeType == child.TEXT_NODE:
if child.nodeType == child.ELEMENT_NODE and child.nodeName == "ref":
text += getTextValue(child)
if child.nodeType == child.TEXT_NODE: