|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.framework.xml.XmlIoUtil
public class XmlIoUtil
Basic XML IO utitilies.
Method Summary | |
---|---|
static String |
domToString(Document dom)
Returns the xml string for a document. |
static String |
jsonToXml(String xmlString,
String rootElement)
JSON To xml. |
static String |
readXml(String systemId)
Reads an xml string from a file or URL. |
static void |
transform(Source source,
Result result,
boolean indent)
Executes a transformation. |
static String |
transform(String xml)
Executes an identity transformation against an XML string. |
static void |
writeXmlFile(String xml,
File file)
Writes an xml string to a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String domToString(Document dom) throws TransformerException
dom
- the xml Document
TransformerException
- if an exception occurspublic static String readXml(String systemId) throws TransformerException
systemId
- the system id of the file or URL to read
TransformerException
- if an exception occurspublic static String transform(String xml) throws TransformerException
xml
- the XML to transform
TransformerException
- if an exception occurspublic static void transform(Source source, Result result, boolean indent) throws TransformerException
source
- the transformation sourceresult
- the transformation resultindent
- if true, the output indent key is set to "yes"
TransformerException
- if an exception occurspublic static void writeXmlFile(String xml, File file) throws TransformerException
file
- the file to createxml
- them xml string
TransformerException
- if an exceition occurspublic static String jsonToXml(String xmlString, String rootElement) throws Exception
xmlString
- the xml stringrootElement
- the root element that the xml should have.
By default = gptJsonXml
Exception
- thrown if error while converting xmlString
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |