Hi, just a comment on that:
string selected = rows.Current.SelectSingleNode("xSelected", NamespaceManager).ValueAsBoolean.ToString();
you can just do :
string selected = rows.Current.SelectSingleNode("xSelected", NamespaceManager).Value;
it's the same and simpler.
For your current problem, You probably need to remove the xsi:nil attribute. Here a sample of code to remove it:
IXMLDOMNode FullBooleanNode = thisXDocument.DOM.selectSingleNode("//my:Node");
removeNil(FullBooleanNode ).text = "true";
public IXMLDOMNode removeNil(IXMLDOMNode node)
{
if (node.selectSingleNode( "@xsi:nil" ) != null)
node.selectSingleNode( "@xsi:nil" ).text = "false";
return node;
}
you can make a search on google for more detail.