setting a node value

R

renee rieser

I have a boolean, "//my:myFields/my:IsArchived", that I've been trying
to set the value on, unsuccessfully. I've tried permutations on both
setNodeValue and setNodeTypedValue. The value defaults to 0 and in
the code I'm trying to change the value to 1.

Could somebody post a few lines of code showing how this works?

Many Thanks In Advance,
Renee
 
G

Greg Collins [InfoPath MVP]

XDocument.DOM.selectSingleNode("/my:myFields/my:IsArchived").text = "1";
 

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