BizTalk Server Orchestration - Convert To xml.xmlDocument

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > July 2004 > Convert To xml.xmlDocument





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Convert To xml.xmlDocument
Mangi

2004-07-23, 7:49 am

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?



Rajan

2004-07-27, 5:53 pm

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?

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com