Kimbert....the info you gave is helpful but should really be a bit more detailed. The most important ommision would be the fact that once you qualify an element with a namespace, all children of that element must also be qualified....and (this is what is biting me) this includes any InputRoot data being assigned to this element.
Not quite correct. Try this:
Quote:
"...if you insert a default namespace declaration into the message tree, all siblings and children of the namespace declaration must have a namespace.
Your statement was too broad - it would prohibit somebody from having a mixture of qualified and unqualified elements in their message tree.
Now for the solution to your problem. You want to put a an XML subtree into the message tree, and you want the default namespace to be applied to it. I advise this approach:
- Parse the XML subtree as a BLOB, or get it in the form of a string by some other means
- Wrap the subtree in a dummy parent element which declares a default namespace for all of the nodes below it
- Parse the resulting string using something like
CREATE LASTCHILD OF Environment.Variables.myXMLSubtree DOMAIN 'XMLNSC' PARSE myXMLString;
- Copy the children of Environment.Variables.myXMLSubtree.dummyElement into your message tree.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum