Namespace declaration in Dataweave 2.0 for XML messages
Defining a number of namespaces based on the XML message and refer them to each tag that you need. Use the syntax to declare namespaces in Dataweave 2.0 (Mule 4.1 version onwards).
%dw 2.0
output application/xml
ns urn http://mulesoft.org/t-shirt-service
ns tls http://www.mulesoft.org/schema/mule/tls
---
root:
urn#orders: {
tls#sslKey: "VALUE",
tls#sslPublickey @(CN: "D01"): "VALUE"
}
Remove a field from JSON object payload using Dataweave 2.0
Version details used in this article:
- Dataweave: 2.0
- Mule Runtime: 4.2
- AnyPoint Studio: 7.3.4
1 Comments
Nice Information
ReplyDeleteMulesoft Online Training in Hyderabad
Mulesoft Online Training in India