Use of selectNodes()

L

Lawrence

Hi

I am having trouble using selectNodes in VBScript, the code below
keeps throwing an error about an incorrect number of arguements or
type mismatch....

Sub CTRL92_OnClick(eventObj)
' Write your code here
Dim capability
Dim nodename

nodename = XDocument.DOM.selectSingleNode("/CapabilitiesProfile/
AreasOfExpertise/TypeLevel1/ExperienceOrInterest").text
capability = XDocument.DOM.SelectNodes("/CapabilitiesProfile/
AreasOfExpertise/TypeLevel1[TypeGroup='Business Consulting']", "", "")

For count = 0 to capability.length


nodename.text = "true()"


Next

End Sub

Any help on getting past that stage would be great :)

Kind Regards

Lawrence
 
L

Lawrence

I should point out that it is this line here:

capability = XDocument.DOM.SelectNodes("/CapabilitiesProfile/
AreasOfExpertise/TypeLevel1[TypeGroup='Business Consulting']")

Thanks
 
K

K.Ramana Reddy(GGK Tech)

Hi,

selectNodes() is used to get the list of nodes in a repeating table or
repeating section.
--
k.Ramana Reddy
http://www.GGKtech.com


Lawrence said:
I should point out that it is this line here:

capability = XDocument.DOM.SelectNodes("/CapabilitiesProfile/
AreasOfExpertise/TypeLevel1[TypeGroup='Business Consulting']")

Thanks


Hi

I am having trouble using selectNodes in VBScript, the code below
keeps throwing an error about an incorrect number of arguements or
type mismatch....

Sub CTRL92_OnClick(eventObj)
' Write your code here
Dim capability
Dim nodename

nodename = XDocument.DOM.selectSingleNode("/CapabilitiesProfile/
AreasOfExpertise/TypeLevel1/ExperienceOrInterest").text
capability = XDocument.DOM.SelectNodes("/CapabilitiesProfile/
AreasOfExpertise/TypeLevel1[TypeGroup='Business Consulting']", "", "")

For count = 0 to capability.length

nodename.text = "true()"

Next

End Sub

Any help on getting past that stage would be great :)

Kind Regards

Lawrence
 
S

Shiva (GGK Tech)

Hi,

We usually used to get list of nodes available in given XPath of node. If
you use for non - repeating node then it will give only node otherwise it
will give list of nodes available in that node.

In your XPath:
("/CapabilitiesProfile/AreasOfExpertise/TypeLevel1[TypeGroup='Business
Consulting']"

It will list of nodes available in ‘TypeLevel1’ node and it will check the
condition ‘TypeGroup’ node value is equalu to ‘Business Consulting'.

Hope this helps you

--
Shiva
http://www.ggktech.com


Lawrence said:
I should point out that it is this line here:

capability = XDocument.DOM.SelectNodes("/CapabilitiesProfile/
AreasOfExpertise/TypeLevel1[TypeGroup='Business Consulting']")

Thanks


Hi

I am having trouble using selectNodes in VBScript, the code below
keeps throwing an error about an incorrect number of arguements or
type mismatch....

Sub CTRL92_OnClick(eventObj)
' Write your code here
Dim capability
Dim nodename

nodename = XDocument.DOM.selectSingleNode("/CapabilitiesProfile/
AreasOfExpertise/TypeLevel1/ExperienceOrInterest").text
capability = XDocument.DOM.SelectNodes("/CapabilitiesProfile/
AreasOfExpertise/TypeLevel1[TypeGroup='Business Consulting']", "", "")

For count = 0 to capability.length

nodename.text = "true()"

Next

End Sub

Any help on getting past that stage would be great :)

Kind Regards

Lawrence
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Type mismatch Problem 2

Top