【发布时间】:2011-05-11 23:19:04
【问题描述】:
我需要从 dom4j 文档类型中删除 XML 声明
我正在通过
创建文档doc = (Document) DocumentHelper.parseText(someXMLstringWithoutXMLDeclaration);
DocumenHelper 解析为 Document doc 的字符串不包含 XML 声明(它来自 XML => XSL => XML 转换) 我认为 DocumentHelper 正在向文档正文添加声明?
有没有办法从
的正文中删除 XML 声明doc
【问题讨论】:
标签: java xml declaration dom4j