public class XMLConfUtils extends XMLUtils
Constructor and Description |
---|
XMLConfUtils() |
Modifier and Type | Method and Description |
---|---|
static org.w3c.dom.Element |
createLastPathComponent(org.w3c.dom.Document doc,
java.lang.String[] path,
int pathLength)
Creates (only if necessary) and returns the element which is at the end
of the specified path.
|
static org.w3c.dom.Element |
getChildElementByChain(org.w3c.dom.Element parent,
java.lang.String[] chain)
Returns the element which is at the end of the specified
String chain.
|
createDocument, createDocument, createDocument, createXml, disableExternalEntities, findChild, findChildren, getAttribute, getCData, getCDataNode, getChildByType, getNamespaceUri, getText, getTextNode, hasChildElements, indentedWriteXML, isStandartXmlNamespace, locateElement, locateElements, newDocumentBuilderFactory, newDocumentBuilderFactory, printChildElements, setCData, setText, writeXML, writeXML, writeXML
public static org.w3c.dom.Element getChildElementByChain(org.w3c.dom.Element parent, java.lang.String[] chain)
parent
- the xml element that is the parent of the root of this
chain.chain
- a String array containing the names of all the child's
parent nodes.public static org.w3c.dom.Element createLastPathComponent(org.w3c.dom.Document doc, java.lang.String[] path, int pathLength)
doc
- the target document where the specified path should be createdpath
- an array of String elements which represents the
path to be created. Each element of path up to and including the
index pathLength - 1
must be valid XML (element) namespathLength
- the length of the specified path
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.