public class XMLParser extends Object
| Constructor and Description |
|---|
XMLParser() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getAttributeValue(Node parentNode,
String attributeName)
Return the value of a Node's Attribute
|
static List<Node> |
getChildNodes(Node parentNode,
String tagName)
Get a List of child nodes equals with a gived tag
|
static String |
getParameterValue(Node paramParent,
String parameterName)
Processes through all the parameter tags of a given node to find the value of
a certain named parameter
|
static Node |
lastChildOfTag(Node parentNode,
String tagName)
lastChildOfTag
Go to the last Child Element Node that is equals
with the gived tag value
|
static Node |
nextChildOfTag(Node startNode,
String tagName)
nextChildOfTag
Go to the next Child Element Node that is equals
with the gived tag value
|
static void |
setAttribute(Element nodeItem,
String attribName,
String value)
Set the attibute of a node only if the value is not null or empty
|
public static String getParameterValue(Node paramParent, String parameterName) throws JahiaException
JahiaExceptionpublic static Node nextChildOfTag(Node startNode, String tagName) throws JahiaException
(Node) - startNode, the parent node(String) - tag, the tag nameJahiaExceptionpublic static Node lastChildOfTag(Node parentNode, String tagName) throws JahiaException
(Node) - parentNode, the parent node(String) - tag, the tag nameJahiaExceptionpublic static List<Node> getChildNodes(Node parentNode, String tagName) throws JahiaException
(Node) - startNode, the parent node(String) - tagName, the Children's tag nameJahiaExceptionpublic static String getAttributeValue(Node parentNode, String attributeName)
(Node) - parentNode the parent node(String) - attributeName , the name of a gived attributeCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.