Andy Stobirski · Dec 29, 2021

Adding multiple namespaces in an XML file


I'm using a class which extends %XML.Adaptor adaptor and I want to create an XML file with multiple namespaces, like the following:

<soap:Envelope xmlns:xsi="" xmlns:xsd="" xmlns:soap="">

However, I don't see how to do this with the code I have. So far, I have

Class GMMHTIE.Docman.Messages.Request.RequestWrapper Extends (%Persistent, %XML.Adaptor)
 Parameter XMLNAME = "soap:Envelope";
 Parameter NAMESPACE = "";
 Parameter XMLPREFIX = "xsi";

which produces the following, which  confuses me.

<soap:Envelope xmlns="" xmlns:xsi="">

Can anyone help, please?


Product version: IRIS 2021.1
$ZV: RIS for Windows (x86-64) 2020.1 (Build 215U) Mon Mar 30 2020 20:14:33 EDT
0 268
Discussion (2)1
Log in or sign up to continue

Each individual tag can belong to only one namespace. Just add all the tags with their relevant namespaces and it should work.

I'm sorry, but I don't understand what that means.