Guest User

Untitled

a guest
Jan 18th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #setNodeValue("/my:myFields/my:Form/my:LeaveType, "Annual");
  2. #setNodeValue(XPath, ValueString);
  3. public void setNodeValue(string path, string value)
  4. {
  5. XPathNavigator root, infopathNode;
  6. root = this.MainDataSource.CreateNavigator();
  7. infopathNode = null;
  8. infopathNode = root.SelectSingleNode(path, this.NamespaceManager);
  9. infopathNode.SetValue(value);
  10. }
Add Comment
Please, Sign In to add comment