Traversing XML tree with VBScript

T

tcarnahan

I am new to InfoPath scripting. Unfortunately, for the project I am working
on, I set VBScript as my default, so I can't change to JScript.

My application requires me to provide a button that when clicked, traverses
the the published form's newly filled out data (XML tree or DOM ... I am not
sure I know the correct term), reading the node names, types, and values.
This includes traversing optional and repeating nodes.

Can anyone point me to an example of how to do this using VBScript?

Thank you ahead of time
 
T

tcarnahan

I am not trying to change the scripting language. I am trying to work within
the VBScript environment.

My terminalogy may not have been correct. I want to put a button on my form
(I know how to do that) with VBScript code behind it that, after the user
fills out the form, when he clicks on the button, it:

- Finds the root element of the XDocument
- Recursively works its way down the tree visiting every child node
- At each node, it reads the name of the element, the data type, and the
value the user just typed into it.

My desire is to have a universal procedure that I can pull into any InfoPath
template, and regardless of its schema, be able to perform this action. I
have other plans for what to do with the data this procedure returns that are
not germane to this discussion.

Thanks ...

GazM said:
Oops

Wrong link
Here is the correct link

http://support.microsoft.com/default.aspx?kbid=828853

Gary
I forgot to add that I am using InfoPath 2003.
[quoted text clipped - 3 lines]
Thank you ahead of time

Hi
I don't have a clue what you are talking about but I do know that you can
change the scripting language in Infopath.
Follow this link
http://msdn.microsoft.com/library/d...2003_ta/html/ODC_INFDigitallySigningData1.asp

Cheers

Gary
 

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