xmldoc.selectNodes() is not working properly
I have the following XML:
<resultset morerecords="0" paging-cookie="<cookie page="1"><activityid last="{2FCC78E0-EC60-E011-9854-000C291F081D}" first="{2FCC78E0-EC60-E011-9854-000C291F081D}" /></cookie&g开发者_JS百科t;">
<result>
<activityid>{2FCC78E0-EC60-E011-9854-000C291F081D}</activityid>
</result>
</resultset>
And I am trying to get each activityid tag from the xml using xmldoc.selectNodes("//activityid")
however, I am not getting the expected result.
EDIT:
Accessing it with the random access operator([]) works but for (... in ...) doesn't. Why is that?It appears that if '&' is present then 'selectNodes' function does not select any row.
精彩评论