I have a schema that defines a request and a confirmation as it's root elements. Many of the data types contained under these two root elements are the same and are defined as global. The problem I'm having is when I create a confirmation document and copy objects from the request document to the confirmation document I get xmlns attributes added to the objects copied over. Interestingly enough, if the object being copied is contained within an Array this issue doesn't present itself. It's only when copying objects that are defined a 1 or 0..1.
 
I've been playing extensively with XmlOptions but I can't seem to find one that will resolve this for me.
 
The request document has a namespace prefix added to the root element.
 
<q0:Pip3A4PurchaseOrderRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:q0="http://it.sybase.com/rosettanet/pip3A4/v202/purchaseorder">
 
 
And when I create my confirmation document it does not contain the namespace prefix but rather a root element without the prefix:
<Pip3A4PurchaseOrderConfirmation xmlns="http://it.sybase.com/rosettanet/pip3A4/v202/purchaseorder">
 
The elements that I copy over from the request document to the confirmation document look as follows:
<PurchaseOrder xmlns="">
 
So is there some way I can prevent this from occurring so I won't have to search for all the xmlns attributes throughout the document and remove them manually?
 
Thanks for the help...
 
Chris Mathrusse
[EMAIL PROTECTED]
(925) 236-5553
 
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to