Solved

Classic ASP page to Update an XML doc

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

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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now