String localName = elemt.getNodeName();
SOAPElement newParent = parentElement.addChildElement(localName,"bas", nameSpace);
// If the node has attributes then process them
if(node.hasAttributes()){
AttributeMap map = (AttributeMap) node.getAttributes();
for (int x = 0; x < map.getLength(); x++) {
String name = map.item(x).getNodeName();
newParent.setAttribute(name, map.item(x).getNodeValue());
}
}
org.w3c.dom.NodeList childNodes = node.getChildNodes();
// for each of this nodes children recursively call this method