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";
 
Top