Geeks With Blogs
MoonWalker Biztalk Driven Addiction May 2011 Entries
XML Stream Namespace
Sometimes I need to load a stream from a file in a Biztalk pipeline and I have to determine the Type of the message. Here s how i do that : // This is for sample only. Should refer to the message stream and rewind the stream Stream fs = new FileStream(filepath, FileMode.Open); // End of stream initialisation. XPathDocument sourceDoc = new XPathDocument(fs); XPathNavigator navigator = sourceDoc.CreateNavigator(); navigator.MoveToFirstChild(); string streamDocSchema = navigator.NamespaceURI + "#" + ......

Posted On Tuesday, May 17, 2011 5:16 PM

Copyright © Frederic Hautecoeur | Powered by: GeeksWithBlogs.net