Class XMLUtils

java.lang.Object
org.red5.io.utils.XMLUtils

public class XMLUtils extends Object
Misc XML utils
Author:
The Red5 Project, Luke Hubbard, Codegent Ltd (luke@codegent.com), Paul Gregoire (mondain@gmail.com)
  • Field Details

    • log

      protected static org.slf4j.Logger log
      Logger
  • Constructor Details

    • XMLUtils

      public XMLUtils()
  • Method Details

    • stringToDoc

      public static Document stringToDoc(String str) throws IOException
      Converts string representation of XML into Document
      Parameters:
      str - String representation of XML
      Returns:
      DOM object
      Throws:
      IOException - I/O exception
    • docToString

      public static String docToString(Document dom)
      Converts doc to String
      Parameters:
      dom - DOM object to convert
      Returns:
      XML as String
    • docToString1

      public static String docToString1(Document dom)
      Convert a DOM tree into a String using Dom2Writer
      Parameters:
      dom - DOM object to convert
      Returns:
      XML as String