Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 373
  • Last Modified:

Classic ASP page to Update an XML doc

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
Lico_w
Asked:
Lico_w
  • 5
  • 5
1 Solution
 
Wayne BarronCommented:
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
 
Lico_wAuthor Commented:
You can dynamically read an xml and you can also dynamically create one, would prefer to avoid using DB if poss.
0
 
Wayne BarronCommented:
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!

 
Lico_wAuthor Commented:
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
 
Wayne BarronCommented:
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
 
Lico_wAuthor Commented:
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
 
Wayne BarronCommented:
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
 
Lico_wAuthor Commented:
can you post a script to at least parse the XML and display it in a browser?
0
 
Lico_wAuthor Commented:
...with the root elements selectable from a drop down list. And the sub elements displayed in text fields?
0
 
Wayne BarronCommented:
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

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 5
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now