Class NSG_XMLUtils

java.lang.Object
org.opengeospatial.cite.wmts10.nsg.core.util.NSG_XMLUtils

public class NSG_XMLUtils extends Object
Author:
Jim Beatty
  • Constructor Details

    • NSG_XMLUtils

      public NSG_XMLUtils()
  • Method Details

    • getXMLElementTextValue

      public static String getXMLElementTextValue(Element element, String tagName)
      Parse the text value of the tag with the specified name.
      Parameters:
      element - , the element to parse from, never null
      tagName - , the name of the tag, never null
      Returns:
      the text value of the tag, null if not exists
    • openXMLDocument

      public static NodeList openXMLDocument(InputStream xmlDocument, String rootName)
      Opens the XML document with the element with the specified rootName.
      Parameters:
      xmlDocument - to open, never null
      rootName - the name of the element to return, never null
      Returns:
      the element as NodeList, mey be null if the document could not be opened.