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
Solved

Classic ASP page to Update an XML doc

Posted on 2011-09-13
10
347 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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Title # Comments Views Activity
Can anyone derive why this VBS doesn't work? 4 26
Restart service script 5 14
Button on Table, name table1 not working 4 21
save excel in the same active file's folder. 8 23
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
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.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

860 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