Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Classic ASP page to Update an XML doc

Posted on 2011-09-13
10
Medium Priority
?
370 Views
Last Modified: 2012-05-12
I need to make changes to an xml via a web front end. Can someone post a simple asp page which can do this please. Ideally I'd like a drop down list which displays the XML elements to chose and then some modifiable text boxes that allow the user to update the values.
0
Comment
Question by:Lico_w
  • 5
  • 5
10 Comments
 
LVL 31

Expert Comment

by:Wayne Barron
ID: 36548064
I could be wrong, but I am thinking that in order for you to achieve something like this, you will need a database of sorts.

Submit to the database, and then create the XML document from the database.
You cannot store data directly to the XML document, as it does not store dynamic data, you can only read dynamic data from it.

Carrzkiss
0
 

Author Comment

by:Lico_w
ID: 36560763
You can dynamically read an xml and you can also dynamically create one, would prefer to avoid using DB if poss.
0
 
LVL 31

Expert Comment

by:Wayne Barron
ID: 36562525
Are you thinking of displaying the xml data straight to the person?
(or)
Are you wanting them to go to a page and then click on a link that then displays the xml data to the person?

Which one?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Lico_w
ID: 36915761
Hi sorry for delay, been on hols. I would like them to be able to select an element of the xml doc and then display the sub elements of that which would then all be modifiable.
0
 
LVL 31

Expert Comment

by:Wayne Barron
ID: 36916018
OK, that did not really answer my question.
What I am needing to know is:

You are wanting to make changes to the XML file via a web interface.
Are these changes going to be kept?
(or)
Are these changes not going to be kept?

As in, once the changes are made, will someone else see the changes?
0
 

Author Comment

by:Lico_w
ID: 36916026
Ok yes these changes will need to be kept so that the next person who accesses the site is able to view the most recent content
0
 
LVL 31

Expert Comment

by:Wayne Barron
ID: 36916220
Then you will need it to save to either a Database, or a txt file.
I might be able to assist in the database, but the txt file I do not know anything about, but might still be able to assist.

Unless someone else has a way to do what you are wanting, this is all I can suggest.
0
 

Author Comment

by:Lico_w
ID: 36916636
can you post a script to at least parse the XML and display it in a browser?
0
 

Author Comment

by:Lico_w
ID: 36916646
...with the root elements selectable from a drop down list. And the sub elements displayed in text fields?
0
 
LVL 31

Accepted Solution

by:
Wayne Barron earned 2000 total points
ID: 36917045
I cannot do it right now, as I am working on a Review for my companies website and it has me tied up for nearly all day.
Until then, you can have a look at the following site, where there is several code examples.
http://p2p.wrox.com/classic-asp-xml-69/
Give it a shot, and see what you can get working, and if you need assistance, post the code here that you have tried, and let me know what the issue is that you are having, and I will try to give you a hand when I get the chance.

Good Luck
Carrzkiss
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

963 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