Solved

Xml help needed

Posted on 2004-10-06
3
121 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
Tacobell777 earned 400 total points
ID: 12246090
#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
ID: 12256376
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
ID: 12256588
can you post the solution
0

Featured Post

Save the day with this special offer from ATEN!

Save 30% on the CV211 using promo code EXPERTS30 now through April 30th. The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

691 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