I have an XML document in script and can't use it to load another form using NewFromSolutionWithData. I'm using the following code, but get the error 'object doesn't support this property or method'
(I've already checked that objXMLNode is not null, it's not).
var objXMLNode = xmlResult.selectSingleNode("/XML_Availability_Response");
Application.XDocuments.NewFromSolutionWithData(objXMLNode, "C:\\InfoPath\\AvailabilityRsp.xsn");