I have data types with different namespaces and I want to show them in the root element of the outgoing file.
In every data type I set the value of "Qualify Schema" to "Elements & Attributes".
With this the created file has only the XML Namespace of the message type in the root element as nw0. The other namespaces ns1..ns5 are created on every element. It looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Order xmlns:ns0="http://xxx.Orders>
<ns0:Customer>
<ns1:Name xmlns:ns1="http://xxx.Customer">My Name</ns1:Name>
<ns1:Address xmlns:ns1="http://xxx.Customer">My Address</ns1:Address>
</ns0:Customer>
<ns0:Items>
<ns0:Item>
<ns3:Article xmlns:ns3="http://xxx.Article">My Article</ns3:Article>
<ns3:Description xmlns:ns3="http://xxx.Article">My Description</ns3:Description>
</ns0:Item>
</ns0:Item>
</ns0:Items>
</ns0:Order>
Can PI create a message with several namespaces in the root element. What I want to have is this:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Order xmlns:ns0="http://xxx.Orders
xmlns:ns1="http://xxx.Customer"
xmlns:ns3="http://xxx.Article">
<ns0:Customer>
<ns1:Name>My Name</ns1:Name>
<ns1:Address>My Address</ns1:Address>
</ns0:Customer>
<ns0:Items>
<ns0:Item>
<ns3:Article>My Article</ns3:Article>
<ns3:Description>My Description</ns3:Description>
</ns0:Item>
</ns0:Item>
</ns0:Items>
</ns0:Order>