Categories | Question details Back To List | ||
doXPath returning empty array in firefox only Hi, in the attached code the doXPath call is returning an empty array in firefox. We are using firefox 3.0.6. The response workQsResponse contains the correct xml response, but the doXPath call always returns an empty array in Firefox. The call is working correct in IE and the array is filled with the data. Is this a problem with the namespaces? We couldn't find a detailed explanation in the documentation on how to handle name spaces. code: var workQsRequest= apUrl + '<?xml version="1.0"?><ap:Action xmlns:ap="http://tibco.com/bpm/actionprocessor" xmlns:sso="http://tibco.com/bpm/sso/types">' + '<ap:Authentication><ap:Login Id="login"><sso:NodeCtx><sso:NodeId>' + '<sso:Name>' + apIProcessName +'</sso:Name>' + '<sso:ComputerName>' + apComputerName + '</sso:ComputerName>' + '<sso:IPAddress>' + apIpAddress + '</sso:IPAddress>' + '<sso:TCPPort>' + apTcpPort + '</sso:TCPPort>' + '<sso:IsDirector>' + apIsDirector + '</sso:IsDirector></sso:NodeId>' + '<sso:UserName>' + apUserName + '</sso:UserName>' + '<sso:Password></sso:Password>' + '</sso:NodeCtx></ap:Login></ap:Authentication>' + '<ap:User><ap:GetWorkQs Id="getWorkQs"/></ap:User></ap:Action>'; var workQsResponse = dhtmlxAjax.getSync(workQsRequest); // get all workQTag elements from the XML var workQTagArray = workQsResponse.doXPath("//sso:Tag"); returned xml in workQsResponse: <?xml version='1.0' encoding='utf-8'?> <ap:ActionResult xmlns:ap='http://tibco.com/bpm/actionprocessor'> <ap:Status> <ap:Version>11.1.0</ap:Version> <ap:ReturnCode>0</ap:ReturnCode> <ap:ReturnComment>The Action was processed successfully. Check the individual Request Results for their status.</ap:ReturnComment> <ap:ReturnDateTime>2009-03-04T10:11:17.648+0100</ap:ReturnDateTime> </ap:Status> <ap:SSO> <sso:vSSOData xmlns:sso="http://tibco.com/bpm/sso/types"> <sso:Results> <sso:vResult Id="getWorkQs"> <sso:WorkQs> <sso:vWorkQ> <sso:Name>Development</sso:Name> <sso:Description>Development</sso:Description> <sso:HostingNode>PHBPPDEV01</sso:HostingNode> <sso:Tag>PHBPPDEV01|Development|R</sso:Tag> <sso:IsGroup>true</sso:IsGroup> <sso:IsReleased>true</sso:IsReleased> <sso:FirstDeadline>3000-12-31T23:15:00.0000000</sso:FirstDeadline> <sso:DeadlineCnt>0</sso:DeadlineCnt> <sso:UnopenedCnt>0</sso:UnopenedCnt> <sso:UrgentCnt>0</sso:UrgentCnt> <sso:WorkItemCnt>0</sso:WorkItemCnt> <sso:WorkQParam1Name>WQ Parameter1</sso:WorkQParam1Name> <sso:WorkQParam2Name>WQ Parameter2</sso:WorkQParam2Name> <sso:WorkQParam3Name>WQ Parameter3</sso:WorkQParam3Name> <sso:WorkQParam4Name>WQ Parameter4</sso:WorkQParam4Name> </sso:vWorkQ> <sso:vWorkQ> <sso:Name>imac01</sso:Name> <sso:Description>imac01</sso:Description> <sso:HostingNode>PHBPPDEV01</sso:HostingNode> <sso:Tag>PHBPPDEV01|imac01|R</sso:Tag> <sso:IsGroup>false</sso:IsGroup> <sso:IsReleased>true</sso:IsReleased> <sso:FirstDeadline>3000-12-31T23:15:00.0000000</sso:FirstDeadline> <sso:DeadlineCnt>0</sso:DeadlineCnt> <sso:UnopenedCnt>2</sso:UnopenedCnt> <sso:UrgentCnt>0</sso:UrgentCnt> <sso:WorkItemCnt>2</sso:WorkItemCnt> <sso:WorkQParam1Name>WQ Parameter1</sso:WorkQParam1Name> <sso:WorkQParam2Name>WQ Parameter2</sso:WorkQParam2Name> <sso:WorkQParam3Name>WQ Parameter3</sso:WorkQParam3Name> <sso:WorkQParam4Name>WQ Parameter4</sso:WorkQParam4Name> </sso:vWorkQ> <sso:vWorkQ> <sso:Name>Marketing</sso:Name> <sso:Description>Marketing</sso:Description> <sso:HostingNode>PHBPPDEV01</sso:HostingNode> <sso:Tag>PHBPPDEV01|Marketing|R</sso:Tag> <sso:IsGroup>true</sso:IsGroup> <sso:IsReleased>true</sso:IsReleased> <sso:FirstDeadline>3000-12-31T23:15:00.0000000</sso:FirstDeadline> <sso:DeadlineCnt>0</sso:DeadlineCnt> <sso:UnopenedCnt>0</sso:UnopenedCnt> <sso:UrgentCnt>0</sso:UrgentCnt> <sso:WorkItemCnt>0</sso:WorkItemCnt> <sso:WorkQParam1Name>WQ Parameter1</sso:WorkQParam1Name> <sso:WorkQParam2Name>WQ Parameter2</sso:WorkQParam2Name> <sso:WorkQParam3Name>WQ Parameter3</sso:WorkQParam3Name> <sso:WorkQParam4Name>WQ Parameter4</sso:WorkQParam4Name> </sso:vWorkQ> <sso:vWorkQ> <sso:Name>Purchasing</sso:Name> <sso:Description>Purchasing</sso:Description> <sso:HostingNode>PHBPPDEV01</sso:HostingNode> <sso:Tag>PHBPPDEV01|Purchasing|R</sso:Tag> <sso:IsGroup>true</sso:IsGroup> <sso:IsReleased>true</sso:IsReleased> <sso:FirstDeadline>3000-12-31T23:15:00.0000000</sso:FirstDeadline> <sso:DeadlineCnt>0</sso:DeadlineCnt> <sso:UnopenedCnt>0</sso:UnopenedCnt> <sso:UrgentCnt>0</sso:UrgentCnt> <sso:WorkItemCnt>0</sso:WorkItemCnt> <sso:WorkQParam1Name>WQ Parameter1</sso:WorkQParam1Name> <sso:WorkQParam2Name>WQ Parameter2</sso:WorkQParam2Name> <sso:WorkQParam3Name>WQ Parameter3</sso:WorkQParam3Name> <sso:WorkQParam4Name>WQ Parameter4</sso:WorkQParam4Name> </sso:vWorkQ> <sso:vWorkQ> <sso:Name>Regulatory affairs</sso:Name> <sso:Description>Regulatory affairs</sso:Description> <sso:HostingNode>PHBPPDEV01</sso:HostingNode> <sso:Tag>PHBPPDEV01|Regulatory affairs|R</sso:Tag> <sso:IsGroup>true</sso:IsGroup> <sso:IsReleased>true</sso:IsReleased> <sso:FirstDeadline>3000-12-31T23:15:00.0000000</sso:FirstDeadline> <sso:DeadlineCnt>0</sso:DeadlineCnt> <sso:UnopenedCnt>0</sso:UnopenedCnt> <sso:UrgentCnt>0</sso:UrgentCnt> <sso:WorkItemCnt>0</sso:WorkItemCnt> <sso:WorkQParam1Name>WQ Parameter1</sso:WorkQParam1Name> <sso:WorkQParam2Name>WQ Parameter2</sso:WorkQParam2Name> <sso:WorkQParam3Name>WQ Parameter3</sso:WorkQParam3Name> <sso:WorkQParam4Name>WQ Parameter4</sso:WorkQParam4Name> </sso:vWorkQ> </sso:WorkQs> </sso:vResult> </sso:Results> </sso:vSSOData> </ap:SSO> </ap:ActionResult> Answer posted by Support on Mar 04, 2009 03:33 |