C
Chris
Hello,
I have an InfoPath form and I want to iterate through all the nodes
programmatically and
retrieve the node name, value, and the data type.
For example, my layout looks like this:
myFields
firstname
lastname
address1
address2
city
state
zip
what I have is:
var rootNode = XDocument.DOM.selectSingleNode("/my:myFields");
var oNodeList = rootNode.childNodes;
var item;
var value;
objBox.Alert("Root/Child Node Length: " + oNodeList.length);
for (var i = 0; i < oNodeList.length; i++) {
item = oNodeList.item(i);
objBox.Alert(item.text);
}
while I can get the name and value of the node, but I can't seem to get the
data type of the nodes.
Not only that, but oNodeList.length is 14. Does anyone know why?
thanks
I have an InfoPath form and I want to iterate through all the nodes
programmatically and
retrieve the node name, value, and the data type.
For example, my layout looks like this:
myFields
firstname
lastname
address1
address2
city
state
zip
what I have is:
var rootNode = XDocument.DOM.selectSingleNode("/my:myFields");
var oNodeList = rootNode.childNodes;
var item;
var value;
objBox.Alert("Root/Child Node Length: " + oNodeList.length);
for (var i = 0; i < oNodeList.length; i++) {
item = oNodeList.item(i);
objBox.Alert(item.text);
}
while I can get the name and value of the node, but I can't seem to get the
data type of the nodes.
Not only that, but oNodeList.length is 14. Does anyone know why?
thanks