如何在dataweave中声明所有命名空间
How to declare all the namespace in dataweave
我的 dataweave 输出 xml 在每个元素中都有 xml 名称 space。有没有办法让所有的namespace都能出现在根元素
TIA
这是我为我的问题找到的解决方案。
data weaver 中的示例代码
info:{
field @(id: "!23" , value: payload.Response.Detail.Header.ID ): null
}
苏蒂安
info:{
field @(id: "!23" , value: payload.Response.Detail.Header.ID ): {}
}
从我的回答中可以明显看出,我只是用 {} 替换了 null 部分,然后它停止生成
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"
我的 dataweave 输出 xml 在每个元素中都有 xml 名称 space。有没有办法让所有的namespace都能出现在根元素
TIA
这是我为我的问题找到的解决方案。
data weaver 中的示例代码
info:{
field @(id: "!23" , value: payload.Response.Detail.Header.ID ): null
}
苏蒂安
info:{
field @(id: "!23" , value: payload.Response.Detail.Header.ID ): {}
}
从我的回答中可以明显看出,我只是用 {} 替换了 null 部分,然后它停止生成
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"