我需要使用需要属性的元素创建一个 XML 文档i:nil=true。我试过<cfset StructInsert(mydoc.employee.name.XmlAttributes, "i:nil", "true")>了,但它返回错误The right hand side is not of type XML Node。我想要的是这样的:<name i:nil="true"/>。
XML 用于调用 .NET Web 服务,DTD 指定这i:nil="true"是指示字段应该null在数据库中的方式。