【发布时间】:2020-01-09 09:08:48
【问题描述】:
我正在尝试形成一个具有某些属性的 xml 请求。这些属性也有一些命名空间。有人可以帮助我使用正确的语法来形成正确的 xml 请求。
例如
Sample xml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ns2="http://www.w3.org/2001/XMLSchema"
<soapenv:Header/>
<soapenv:Body>
<Request>
<soapenv:age ns1:type="ns2:string">1234</soapenv:age>
</Request>
</soapenv:Body>
</soapenv:Envelope>
dataweave
%dw 1.0
%output application/xml
{
ns1#age @(ns1#type: "ns2#string"): "1234"
}
【问题讨论】:
标签: xml mule transform mule-studio dataweave