| Author |
Convert To xml.xmlDocument
|
|
|
| How do i convert a message to xml.xmldocument. The message is typed on a schema and not a multipart message. if it was a mulitype message i could easily di this...
DocPart = msgTransformedOrder.OrderPart;
xmlDocument = (System.Xml.XmlDocument) DocPart.RetrieveAs(typeof(System.Xml.XmlDocument));
msgDemandTOiBIS.xDoc = xmlDocument;
How do i do this for a message that conforms to a schema?
| |
| Yossi Dahan 2004-07-23, 5:50 pm |
| AFAIK a BizTalk message can be casted into an Xml document
so xmlDocument = MyMessage;
should work
Yossi
"Mangi" <Mangi@discussions.microsoft.com> wrote in message
news:0437BD48-E55D-4507-A1D2-9DB7FE3AED51@microsoft.com...
> How do i convert a message to xml.xmldocument. The message is typed on a
schema and not a multipart message. if it was a mulitype message i could
easily di this...
> DocPart = msgTransformedOrder.OrderPart;
> xmlDocument = (System.Xml.XmlDocument)
DocPart.RetrieveAs(typeof(System.Xml.XmlDocument));
> msgDemandTOiBIS.xDoc = xmlDocument;
>
> How do i do this for a message that conforms to a schema?
| |
|
| Declaring a variable of type XmlDocument and then assigning the message to it in an expression has always done the trick for me.
Regards
Rajan
"Mangi" wrote:
> How do i convert a message to xml.xmldocument. The message is typed on a schema and not a multipart message. if it was a mulitype message i could easily di this...
> DocPart = msgTransformedOrder.OrderPart;
> xmlDocument = (System.Xml.XmlDocument) DocPart.RetrieveAs(typeof(System.Xml.XmlDocument));
> msgDemandTOiBIS.xDoc = xmlDocument;
>
> How do i do this for a message that conforms to a schema?
|
|
|
|