Class XMLSupport

java.lang.Object
org.esa.snap.core.dataop.downloadable.XMLSupport

public final class XMLSupport extends Object
Created by IntelliJ IDEA. User: lveci Date: Jan 23, 2008 Time: 2:45:16 PM To change this template use File | Settings | File Templates.
  • Constructor Details

    • XMLSupport

      public XMLSupport()
  • Method Details

    • SaveXML

      public static void SaveXML(org.jdom2.Document doc, String filePath) throws IOException
      Throws:
      IOException
    • LoadXML

      public static org.jdom2.Document LoadXML(InputStream inputStream) throws IOException
      Throws:
      IOException
    • LoadXML

      public static org.jdom2.Document LoadXML(String filePath) throws IOException
      Throws:
      IOException
    • LoadXMLFromResource

      public static org.jdom2.Document LoadXMLFromResource(String filePath, Class theClass) throws IOException
      Throws:
      IOException
    • metadataElementToDOMElement

      public static void metadataElementToDOMElement(MetadataElement metadataElem, org.jdom2.Element domElem)
    • getAttrib

      public static String getAttrib(org.jdom2.Element elem, String tag)
    • getElement

      public static org.jdom2.Element getElement(org.jdom2.Element root, String name) throws IOException
      Throws:
      IOException
    • getElementText

      public static org.jdom2.Text getElementText(org.jdom2.Element root) throws IOException
      Throws:
      IOException
    • getStringList

      public static String[] getStringList(org.jdom2.Element elem)