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 nulltagName - , the name of the tag, never nullnull if not existspublic static NodeList openXMLDocument(InputStream xmlDocument, String rootName)
xmlDocument - to open, never nullrootName - the name of the element to return, never nullNodeList, mey be null if the document could not be opened.Copyright © 2022 Open Geospatial Consortium. All rights reserved.