XpathNamespace.XPATH_NAMESPACE_NODE_NAME);
if(partNodes!=null && partNodes.getLength() > 0){
for(int partNum = 0 ; partNum < partNodes.getLength(); partNum++){
XpathPart part = new XpathPart();
Node partNode = partNodes.item(partNum);
NamedNodeMap attributes = partNode.getAttributes();
if(attributes!=null){
Node name = attributes.getNamedItem(XpathPart.PART_NAME_ATTRIBUTE);
if(name != null){
part.setName(name.getTextContent());
}
Node xpath = attributes.getNamedItem(XpathPart.PART_XPATH_ATTRIBUTE);
if(xpath != null){
part.setXpath(xpath.getTextContent());
}
Node optional = attributes.getNamedItem(XpathPart.PART_OPTIONAL_ATTRIBUTE);
if(optional != null){
part.setOptional(Boolean.parseBoolean(optional.getTextContent()));
}
}
parts.add(part);
}
}