I spent a while figuring this out, so I just wanted to share what I had found:
In Labview 2009 and 2010, and using the XML invoke nodes, one cannot invoke "Set XML" on a created element that has not been added to the document. Error -2626, invlid refnum, doesn't spell this out.