【发布时间】:2012-06-20 12:04:03
【问题描述】:
我有一个 XML 文档,它由附加到它的几个其他 XML 文档组成。因此,文档中有几个 XML 声明会阻止我的 XSLT 正确解析它。我正在尝试使用 ant replace 和 replaceregexp 任务从文档中删除声明,但它们对文件没有任何作用。这是我目前所拥有的。
<replaceregexp file="${cppUnit.file}" >
<regexp pattern="<?xml * ?>" />
<substitution expression="" />
</replaceregexp>
【问题讨论】:
标签: xml ant replace xml-declaration