Class NSG_XMLUtils
java.lang.Object
org.opengeospatial.cite.wmts10.nsg.core.util.NSG_XMLUtils
- Author:
- Jim Beatty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetXMLElementTextValue(Element element, String tagName) Parse the text value of the tag with the specified name.static NodeListopenXMLDocument(InputStream xmlDocument, String rootName) Opens the XML document with the element with the specified rootName.
-
Constructor Details
-
NSG_XMLUtils
public NSG_XMLUtils()
-
-
Method Details
-
getXMLElementTextValue
Parse the text value of the tag with the specified name.- Parameters:
element- , the element to parse from, nevernulltagName- , the name of the tag, nevernull- Returns:
- the text value of the tag,
nullif not exists
-
openXMLDocument
Opens the XML document with the element with the specified rootName.- Parameters:
xmlDocument- to open, nevernullrootName- the name of the element to return, nevernull- Returns:
- the element as
NodeList, mey benullif the document could not be opened.
-