public class Dom4jExtension extends Object
| Constructor and Description |
|---|
Dom4jExtension() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
get(org.dom4j.Node node,
String xpathExpression)
Adds a get method to Dom4j nodes, which allows XPath queries through dot notation properties, e.g
siteItem.collection.item[1].text. |
public static Object get(org.dom4j.Node node, String xpathExpression)
siteItem.collection.item[1].text. Also, if the result is an Element, then the
element will attempted to be converted based on the content model field conversion algorithm.node - the Node object (this)xpathExpression - the XPath expression or queryCopyright © 2020 CrafterCMS. All rights reserved.