src/main/java/com/mxgraph/util/mxXmlUtils.java
public static Document parseXml(String xml)
	{
		try
		{
			return getDocumentBuilder().parse(new InputSource(new StringReader(xml)));
		}
		catch (Exception e)
		{
			log.log(Level.SEVERE, "Failed to parse XML", e);
		}
		
		return null;
	}
/**
	 * Returns a new document for the given XML string. External entities and DTDs are ignored.
	 * 
	 * @param xml
	 *            String that represents the XML data.
	 * @return Returns a new XML document.
	 */
Returns a new document for the given XML string. External entities and DTDs are ignored.

@param xml
String that represents the XML data.
@return Returns a new XML document.
Returns a new document for the given XML string . External entities and DTDs are ignored . @param xml String that represents the XML data . @return Returns a new XML document .
public static Document parseXml(String xml)
	{
		try
		{
			return getDocumentBuilder().parse(new InputSource(new StringReader(xml)));
		}
		catch (Exception e)
		{
			log.log(Level.SEVERE, "Failed to parse XML", e);
		}
		return null;
	}
public static Document parseXml ( String xml ) { try { return getDocumentBuilder ( ) . parse ( new InputSource ( new StringReader ( xml ) ) ) ; } catch ( Exception e ) { log . log ( Level . SEVERE , "Failed to parse XML" , e ) ; } return null ; }
Returns a new document for the given XML string.
Returns a new document for the given XML string .