Hi,
I have an html form (created by transforming an xml doc with an xsl
stylesheet and sent as html within an asp.net page.
The doc is a set of user instructions steps. For each
of the elements that allow user input (<measurement> and
<data_collection>, for example, my xsl turns that into an
<input type=text name="the unique name attribute defined in the base xml
doc" box in the html form (I would post it, but it's really quite
large).
The only "changes" the user is allowed to make are via these text boxes.
When the user is done, they click a Submit button. The submit javascript
then opens an aspx page (hidden from the user), where I would use code
to load the original xml doc and that's where I need to
do node.value changes FOR EACH TEXTBOX INPUT before saving the entire
DOM.
Again, because these instruction docs have an unknown number/type
(different elements such as <measurement> and <data_collection> of
name/value pairs).
For example, a request.form collection could end up having 2 pairs from
two html textboxes name="one", name="two".
For each, I need to set a variable name so I can use that in an xpath to
get to the right DOM node (yes?).
Dim xElem As XmlElement =
xDoc.SelectSingleNode("//measurement[@name='" & varName & "'")
Then I could do a node.value = "value of the name/value pair here".
Move onto the next name/value pair, set the varName variable, etc.
Am I thinking about this in the right way? And, if so, does someone know
how I can set the variable for each name/value pair as described?
Thanks for any feedback/ideas!
Kathy
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!