Package com.mxgraph.util
Class mxXmlUtils
- java.lang.Object
-
- com.mxgraph.util.mxXmlUtils
-
public class mxXmlUtils extends java.lang.Object
Contains various XML helper methods for use with mxGraph.
-
-
Constructor Summary
Constructors Constructor Description mxXmlUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.xml.parsers.DocumentBuilder
getDocumentBuilder()
static java.lang.String
getXml(org.w3c.dom.Node node)
Returns a string that represents the given node.static org.w3c.dom.Document
parseXml(java.lang.String xml)
Returns a new document for the given XML string.
-
-
-
Method Detail
-
getDocumentBuilder
public static javax.xml.parsers.DocumentBuilder getDocumentBuilder()
-
parseXml
public static org.w3c.dom.Document parseXml(java.lang.String xml)
Returns a new document for the given XML string. External entities and DTDs are ignored.- Parameters:
xml
- String that represents the XML data.- Returns:
- Returns a new XML document.
-
getXml
public static java.lang.String getXml(org.w3c.dom.Node node)
Returns a string that represents the given node.- Parameters:
node
- Node to return the XML for.- Returns:
- Returns an XML string.
-
-