String hrefContentId = validateHref(hrefAttr);
if (hrefContentId!=null) {//This is an element referencing an attachment!
OMText omText = getOMTextForReferencedAttachment(hrefContentId, soapMsg);
child.build();
child.removeAttribute(hrefAttr);
child.addChild(omText);
} else { //possibly there can be references in the children of this element
//so recurse through.
insertAttachmentNodes(child, soapMsg);