Class mxXmlUtils

java.lang.Object
com.mxgraph.util.mxXmlUtils

public class mxXmlUtils extends Object
Contains various XML helper methods for use with mxGraph.
  • Constructor Details

    • mxXmlUtils

      public mxXmlUtils()
  • Method Details

    • getDocumentBuilder

      public static DocumentBuilder getDocumentBuilder()
    • parseXml

      public static Document parseXml(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 String getXml(Node node)
      Returns a string that represents the given node.
      Parameters:
      node - Node to return the XML for.
      Returns:
      Returns an XML string.