while (child != null) {
if (SPConstants.XPATH_EXPR.equals(child.getLocalName())
&& spVersion.getSPConstants().getXPathExpression().getNamespaceURI().equals(child.getNamespaceURI())) {
Map<String, String> declaredNamespaces = new HashMap<String, String>();
addDeclaredNamespaces(child, declaredNamespaces);
xPaths.add(new XPath(child.getTextContent().trim(), XPath.Version.V1, null, declaredNamespaces));
}
child = SPUtils.getNextSiblingElement(child);
}
return xPaths;
}