?
Solved

Xml help needed

Posted on 2004-10-06
3
Medium Priority
?
122 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 1200 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

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

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…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month15 days, 10 hours left to enroll

741 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