Solved

Xml help needed

Posted on 2004-10-06
3
114 Views
Last Modified: 2013-12-24
Hi,

I wanted to ask.. if I have an xml file..

And the file has say 1 root (of course) and maybe 10 child elements/nodes.

I want to output the first child elements values (XmlText)  if the user clicks a button.

So on an html form, I want to hit submit and display the first nodes value

The next time I hit submit, I want to display the next nodes values

Sort of like in a line, you come to our site, hit a button and you get the values only in node 1

Next person comes to site, hits same button, they get the values from node 2, etc, etc

Each node has unique values so two users will never get the same values if done correctly.

How can this be done?

In a sense if you were to compare my example to a normal database...  Its like hitting a button and getting the first record in the db, hitting it again, you get the 2nd record in db, etc

Hope that makes sense....

0
Comment
Question by:Westside2004
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
Tacobell777 earned 400 total points
Comment Utility
#xmlDoc.xmlRoot.xmlChildren[ 1 ].xmlText#
#xmlDoc.xmlRoot.xmlChildren[ 2 ].xmlText#
#xmlDoc.xmlRoot.xmlChildren[ 3 ].xmlText#
etc.

is that it?
0
 
LVL 1

Author Comment

by:Westside2004
Comment Utility
HI,

I ended up getting the solution, the solution was more related to the read, parsing, and writing back to the xml file...

But involved looping, and using XmlElemNew to create new elements.

Thanks

-ws
0
 
LVL 17

Expert Comment

by:Tacobell777
Comment Utility
can you post the solution
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
This video discusses moving either the default database or any database to a new volume.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now