Class XMLWriter


  • public class XMLWriter
    extends java.lang.Object
    XMLWriter helper class.
    Since:
    jcms-5.5.0
    Author:
    Jean-Philippe Encausse
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getXML​(org.jdom.Element rootElm, java.lang.String encoding)
      Retrieve XML from the specified root element and encoding.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getXML

        public static java.lang.String getXML​(org.jdom.Element rootElm,
                                              java.lang.String encoding)
        Retrieve XML from the specified root element and encoding.
        Parameters:
        rootElm - the root Element of the XML
        encoding - the encoding of the xml header
        Returns:
        a valid XML content