submitting to web service

M

Metin

Hello,

I want to submit my Infopath form to a web service. Web service receives an
XmlElement. That is ok. I can receive that form and save it to a file. But i
cant mange this xml data. How can i acces data in the xml element.

I try to use something like that. What is wrong. Do i need any xml
namespace?


XmlDocument xd = new XmlDocument();

xd.LoadXml( studentInfo.InnerText );


XPathNavigator nav = ((IXPathNavigable)xd).CreateNavigator();

XmlNamespaceManager xns = new XmlNamespaceManager( nav.NameTable );


XmlNode _node = xd.DocumentElement.SelectSingleNode("//studentName", xns );
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top