public class NSG_XMLUtils extends Object
Constructor and Description |
---|
NSG_XMLUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getXMLElementTextValue(Element element,
String tagName)
Parse the text value of the tag with the specified name.
|
static NodeList |
openXMLDocument(InputStream xmlDocument,
String rootName)
Opens the XML document with the element with the specified rootName.
|
public static String getXMLElementTextValue(Element element, String tagName)
element
- , the element to parse from, never null
tagName
- , the name of the tag, never null
null
if not existspublic static NodeList openXMLDocument(InputStream xmlDocument, String rootName)
xmlDocument
- to open, never null
rootName
- the name of the element to return, never null
NodeList
, mey be null
if the document could not be opened.Copyright © 2022 Open Geospatial Consortium. All rights reserved.