unreliable
Hi. I am having a problem getting the correct results using the msxmldom's
getElementsByTagName method. This works if there is only one SalesRep node:
documentElement.getElementsByTagName("IC/SalesRep/Account[1]/Parameter/Name"),
but does not work if there is more than one salesrep node. I just want to
get the Name node for one[1] account, because I am using those nodes as the
column headers in a report. Thanks in advance!
--Stu
[461 byte] By [
stu] at [2007-11-9 15:22:22]

# 1 Re: unreliable
You might want to try using selectSingleNode instead of getElementsByTagName.
getElementsByTagName will return a list of nodes, while selectSingleNode
will only return one node.
"stu" <mikec@humboldtbank.com> wrote:
>
>Hi. I am having a problem getting the correct results using the msxmldom's
>getElementsByTagName method. This works if there is only one SalesRep node:
>documentElement.getElementsByTagName("IC/SalesRep/Account[1]/Parameter/Name"),
>but does not work if there is more than one salesrep node. I just want to
>get the Name node for one[1] account, because I am using those nodes as
the
>column headers in a report. Thanks in advance!
>--Stu
Steven at 2007-11-11 23:30:26 >
