The namespace definition is all there and still the same object error on the var functions
XDocument.DOM.setProperty("SelectionNamespaces", 'xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-07-08T23:17:28"');
function XDocument::OnSubmitRequest(eventObj)
{
var urgency = ...