我想创建模糊 XML 的Peach DataModel
(准确地说,是来自 .docx 的 [Content_Types].xml)。但是当我创建一个XmlElement
属性 xmlns 时,桃子会因未处理的异常而崩溃:System.ArgumentException
有用:
<DataModel name="TestTemplate">
<XmlElement elementName="Types">
<XmlAttribute attributeName="xmlnsSOMELETTERS">
<String value="http://schemas.openxmlformats.org/package/2006/content-types">
<Analyzer class="StringToken"/>
</String>
</XmlAttribute>
.......
</DataModel>
它不起作用:
<XmlElement elementName="Types">
<XmlAttribute attributeName="xmlns">
<String value="http://schemas.openxmlformats.org/package/2006/content-types">
<Analyzer class="StringToken"/>
</String>
</XmlAttribute>
你能帮我解决这个问题吗?