Constructor and Description |
---|
XMLDocument(String content)
Initializes this class given the content of an XML document as a string.
|
Modifier and Type | Method and Description |
---|---|
XMLNodeList |
getElementsByTagName(String tagName)
Returns all elements of the document with the given tag name.
|
static String |
removeXMLNodes(String xml,
String... nodesToBeRemoved)
Removes the xml nodes from the XML string given as input.
|
String |
toXMLString()
Returns the XML representation of this document.
|
public XMLDocument(String content)
content
- the content of an XML document.public XMLNodeList getElementsByTagName(String tagName)
tagName
- the given tag name.public static String removeXMLNodes(String xml, String... nodesToBeRemoved)
xml
- the XML string of which the nodes are removed.nodesToBeRemoved
- the XML nodes to be removed.public String toXMLString()
Copyright © 2017. All rights reserved.