类 Dom4jUtils
java.lang.Object
org.cattleframework.utils.auxiliary.Dom4jUtils
Dom4j工具
- 作者:
- orange
-
方法概要
修饰符和类型方法说明static StringasXmlWithoutPretty(org.dom4j.Document document, String enc) 根据Document对象生成不带回车的Xml字符串static StringasXmlWithoutPretty(org.dom4j.Element element, String enc) 根据Element对象生成不带回车的Xml字符串static StringasXmlWithPretty(org.dom4j.Document document, String enc) 根据Document对象生成带回车的Xml字符串static StringasXmlWithPretty(org.dom4j.Element element, String enc) 根据Element对象生成带回车的Xml字符串static org.dom4j.Documentstatic org.dom4j.DocumentgetDocument(String xml) static org.dom4j.DocumentgetDocument(URL url)
-
方法详细资料
-
getDocument
-
getDocument
-
getDocument
-
asXmlWithoutPretty
根据Document对象生成不带回车的Xml字符串- 参数:
document- document对象enc- 字符集- 返回:
- 不带回车的Xml字符串
-
asXmlWithPretty
根据Document对象生成带回车的Xml字符串- 参数:
document- document对象enc- 字符集- 返回:
- 带回车的Xml字符串
-
asXmlWithoutPretty
根据Element对象生成不带回车的Xml字符串- 参数:
element- element对象enc- 字符集- 返回:
- 不带回车的Xml字符串
-
asXmlWithPretty
根据Element对象生成带回车的Xml字符串- 参数:
element- element对象enc- 字符集- 返回:
- 带回车的Xml字符串
-