Package org.red5.io.utils
Class XMLUtils
java.lang.Object
org.red5.io.utils.XMLUtils
Misc XML utils
- Author:
- The Red5 Project, Luke Hubbard, Codegent Ltd (luke@codegent.com), Paul Gregoire (mondain@gmail.com)
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
docToString
(Document dom) Converts doc to Stringstatic String
docToString1
(Document dom) Convert a DOM tree into a String using Dom2Writerstatic Document
stringToDoc
(String str) Converts string representation of XML into Document
-
Field Details
-
log
protected static org.slf4j.Logger logLogger
-
-
Constructor Details
-
XMLUtils
public XMLUtils()
-
-
Method Details
-
stringToDoc
Converts string representation of XML into Document- Parameters:
str
- String representation of XML- Returns:
- DOM object
- Throws:
IOException
- I/O exception
-
docToString
Converts doc to String- Parameters:
dom
- DOM object to convert- Returns:
- XML as String
-
docToString1
Convert a DOM tree into a String using Dom2Writer- Parameters:
dom
- DOM object to convert- Returns:
- XML as String
-