I em working with Infopath Designer 2010. I have a form with fields Name(date type: string) and Score(data type :decimal(double)). I have created a web application which will download the infopath form(myFile) from the server and read the form data. I am able to get the form filed values lime below.
MemoryStream myInStream = new MemoryStream(myFile.OpenBinary());
XmlDocument myDoc = new XmlDocument();
myDoc.Load(myInStream);
XmlNode myRoot = myDoc.DocumentElement;
XmlNamespaceManager xmlNSManager = new XmlNamespaceManager(myDoc.NameTable);
xmlNSManager.AddNamespace("my", "http://schemas.microsoft.com/office/infopath/2003/myXSD/2010-01-15T18:21:55");
XPathNavigator nav = myRoot.CreateNavigator();
XmlNodeList nodes = myDoc.GetElementsByTagName("my:Score");
foreach (XmlNode node in nodes)
{
Resonse.Write(node.InnerText.ToString()); //will return the value of the field Score
}
But can anyone tell me how can I get the data type of the field Score?
Regards,
Mayasmitha


Sign In
Create Account


Back to top









