the document type created does not hold the xmlns, xsi, … attributes, only a @id appears
when I convert into string (using WmPublic/pub.xml:documentToXMLString) an ouput document filled with datas, I get “<AdministrativeInfo>my datas</AdministrativeInfo>” instead of having “<cop:AdministrativeInfo>my datas</cop:AdministrativeInfo>” (see the missong “cop:” statement)
How should I work to create a correct ouput document ?
Rename your document to include the prefix (e.g. cop:AdministrativeInfo), then in the pub.xml:DocumentToString step, populate the nsdecls record with the prefix “cop” and the correct namespace (“http://www.cyclonecommerce.com/Schemas/2001/08/cop”, in your case).
BTW, per the XML Schema specification, adding a prefix to an XML element and specifying the namespace definition in an “xmlns prefix=” clause is called namespace qualifying the element. This is used to distinguish between identically named elements.
When you namespace qualify an element, the default behavior is for any children of that element to inheirit that namespace definition. It is not necessary (although it is valid) to add the prefix to each of those element names as well.
So, in the sample document you attached, since the “OrganizationProfile” element is namespace qualified, it is not necessary to add the “cop” prefix to its children (e.g. “AdministrativeInfo”)