Solved

Xml help needed

Posted on 2004-10-06
3
120 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
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 …

738 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