public static boolean xpathExists(Node document, String xpathExpression, Map<String, String> namespaceMapping) throws XPathException, MarshallingException { Boolean result = (Boolean) executeXPath(document, xpathExpression, namespaceMapping, XPathConstants.BOOLEAN); return result != null && result; }
public String getPrefix(String namespaceURI) { Iterator<String> prefixIterator = getPrefixes(namespaceURI); if (prefixIterator.hasNext()) { return getPrefixes(namespaceURI).next(); } return null; }
private String processDoctypeVersion(DoctypeMetaModel entry) { String publicId = entry.getPublicId(); String systemId = entry.getSystemId(); // extract the version information from the public / system ID. String versionInformation = DoctypeUtils.extractVersion(publicId, systemId); return versionInformation; }
/** * Runs the given xpath and returns a {@link String} result. */ public static String xpathExtract(Node document, String xpathExpression, Map<String, String> namespaceMapping) throws XPathException, MarshallingException { return (String) executeXPath(document, xpathExpression, namespaceMapping, XPathConstants.STRING); }
private String processDoctypeVersion(DoctypeMetaModel entry) { String publicId = entry.getPublicId(); String systemId = entry.getSystemId(); // extract the version information from the public / system ID. String versionInformation = DoctypeUtils.extractVersion(publicId, systemId); return versionInformation; }
public String getPrefix(String namespaceURI) { Iterator<String> prefixIterator = getPrefixes(namespaceURI); if (prefixIterator.hasNext()) { return getPrefixes(namespaceURI).next(); } return null; }
/** * Runs the given xpath and returns a {@link NodeList} result. */ public static NodeList xpathNodeList(Node document, String xpathExpression, Map<String, String> namespaceMapping) throws XPathException, MarshallingException { return (NodeList) executeXPath(document, xpathExpression, namespaceMapping, XPathConstants.NODESET); }
private String processDoctypeVersion(DoctypeMetaModel entry) { String publicId = entry.getPublicId(); String systemId = entry.getSystemId(); // extract the version information from the public / system ID. String versionInformation = DoctypeUtils.extractVersion(publicId, systemId); return versionInformation; }
public String getPrefix(String namespaceURI) { Iterator<String> prefixIterator = getPrefixes(namespaceURI); if (prefixIterator.hasNext()) { return getPrefixes(namespaceURI).next(); } return null; }
/** * Runs the given xpath and returns a {@link NodeList} result. */ public static NodeList xpathNodeList(Node document, XPathExpression xpathExpression) throws XPathException, MarshallingException { return (NodeList) executeXPath(document, xpathExpression, XPathConstants.NODESET); }
private String processDoctypeVersion(DoctypeMetaModel entry) { String publicId = entry.getPublicId(); String systemId = entry.getSystemId(); // extract the version information from the public / system ID. String versionInformation = DoctypeUtils.extractVersion(publicId, systemId); return versionInformation; }
public static NodeList xpathNodeList(Node document, XPathExpression xpathExpression) throws XPathException, MarshallingException { return (NodeList) executeXPath(document, xpathExpression, XPathConstants.NODESET); }
private String processDoctypeVersion(DoctypeMetaModel entry) { String publicId = entry.getPublicId(); String systemId = entry.getSystemId(); // extract the version information from the public / system ID. String versionInformation = DoctypeUtils.extractVersion(publicId, systemId); return versionInformation; }
/** * Runs the given xpath and returns a boolean result. */ public static boolean xpathExists(Node document, String xpathExpression, Map<String, String> namespaceMapping) throws XPathException, MarshallingException { Boolean result = (Boolean) executeXPath(document, xpathExpression, namespaceMapping, XPathConstants.BOOLEAN); return result != null && result; }
/** * Runs the given xpath and returns a boolean result. */ public static boolean xpathExists(Node document, String xpathExpression, Map<String, String> namespaceMapping) throws XPathException, MarshallingException { Boolean result = (Boolean) executeXPath(document, xpathExpression, namespaceMapping, XPathConstants.BOOLEAN); return result != null && result; }
/** * Runs the given xpath and returns a {@link NodeList} result. */ public static NodeList xpathNodeList(Node document, String xpathExpression, Map<String, String> namespaceMapping) throws XPathException, MarshallingException { return (NodeList) executeXPath(document, xpathExpression, namespaceMapping, XPathConstants.NODESET); }
public static NodeList xpathNodeList(Node document, String xpathExpression, Map<String, String> namespaceMapping) throws XPathException, MarshallingException { return (NodeList) executeXPath(document, xpathExpression, namespaceMapping, XPathConstants.NODESET); }
/** * Runs the given xpath and returns a {@link String} result. */ public static String xpathExtract(Node document, String xpathExpression, Map<String, String> namespaceMapping) throws XPathException, MarshallingException { return (String) executeXPath(document, xpathExpression, namespaceMapping, XPathConstants.STRING); }
/** * Runs the given xpath and returns a {@link NodeList} result. */ public static NodeList xpathNodeList(Node document, XPathExpression xpathExpression) throws XPathException, MarshallingException { return (NodeList) executeXPath(document, xpathExpression, XPathConstants.NODESET); }
public static String xpathExtract(Node document, String xpathExpression, Map<String, String> namespaceMapping) throws XPathException, MarshallingException { return (String) executeXPath(document, xpathExpression, namespaceMapping, XPathConstants.STRING); }