Greg,
Thanks for the help. I am struggling parsing through the xml response from the web service call. I have the following xml response:
[left]<dfs:myFields xmlns:dfs=\"http://schemas.microsoft.com/office/infopath/2003/dataFormSolution\" xmlns:tns=\"http://localhost/LinkService/LinkService.asmx\">
<dfs:queryFields>
<tns:GetDirectives></tns:GetDirectives>
</dfs:queryFields>
<dfs:dataFields>
<GetDirectivesResponse xmlns=\"http://localhost/LinkService/LinkService.asmx\">
<GetDirectivesResult>
<Content>
<treeObjectID>2</treeObjectID>
<parentObjectID>0</parentObjectID>
<label>General Manual</label>
<contentItemID>0</contentItemID>
<fileID>0</fileID>
<citation>GM</citation>
<displayOrder>1</displayOrder>
<hidden>false</hidden>
<maxDisplay>10</maxDisplay>
<allowRollUp>false</allowRollUp>
</Content>
....
I am using the following jscript code to parse the xml. I cannot get it to work. Any ideas?
domXML = XDocument.GetDOM("GetDirectives");
domXML.setProperty("SelectionNamespaces", "xmlns:dfs='http://schemas.microsoft.com/office/infopath/2003/dataFormSolution'");
var objWorkflowNodes = domXML.selectNodes("/dfs:myFields/dfs:dataFields/GetDirectivesResponse/GetDirectivesResult/Content");
objWorkflowNodes.Length = 0