Help with selectsinglenode!

B

Bob P

I'm have trouble with selectSingleNode...

If my data source looks like

myFields
FormData
VendorName
VendorPhone

then DummyString =
XDocument.DOM.selectSingleNode("/my:myFields/my:FormData/my:VendorName").text
works as expected.

If I create the form from a data connection, then my data source looks
like:

myFields
queryFields
dataFields
FormData
VendorName
VendorPhone

and
XDocument.DOM.selectSingleNode("/my:myFields/my:FormData/my:VendorName").text
does NOT work - using vbscript, it gives an error of Object required:
'XDocument.DOM.selectSingleNode(...)'

What am I doing wrong? How do I select a node when I create a from a
data connection?
 
B

Bob P

That was it - it should have been

XDocument.DOM.selectSingleNode("/dfs:myFields/my:FormData/my:VendorName").text

Thanks for the help (and for the helpful website!)
 

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

Top