Solved

Classic ASP page to Update an XML doc

Posted on 2011-09-13
10
346 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 30

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 30

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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

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 30

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 30

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 30

Accepted Solution

by:
Wayne Barron earned 500 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
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 …

773 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