Manipulating XML files using ASP

Methods and properties of the XMLDOM can be used to manipulate the xml file using ASP. For example if you want to add an element with some text to an already existing xml file, the first step in asp is to create an xmldom object and load the xml file to it. You can check the outcome of the load method to find out if the xml file is properly loaded or else you can display some error message.

_______________________________________________


_______________________________________________

Once the xml file is loaded properly you can use the createElement method to create the element needed and the createTextNode method to create the text that is to be added to the element you have created.

The new element object's appendChild method can be used to add the text to the element. Now navigate to the root element of the document using xml documents documentElement and now append the new element to the document.

After doing any manipulation to the xml file the changes have to be incorporated to the physical file by using the xml document's save method. This method takes the path of the file as its argument.

posted by Eugenia Loli-Queru on Mon 19th Nov 2001 19:44 UTC (New Mobile Computing)
Today, OSNews features an interview with Zac Woodall, software design Engineer at Office Data and Developer Services at Microsoft Corporation . Zac, who is also a frequent OSNews reader, talks about the new Office, .NET, WindowsXP, NTFS and how it compares to BFS filesystem, the GPL & open source movement and much more.

Dolphin EasyReader, the Missing Link in MicroSoft's 'Save As DAISY XML' Plug In (PRWeb via Yahoo! News)
Less than one month since MicroSoft's landmark launch of "SAVE AS DAISY XML" on the 7th May 2008, Dolphin Computer Access Limited unveil the first DAISY player, speech enabled by Acapela voices, to support the DAISY DTBook format created by Microsoft's free Word plug-in.

AjaxPDF 2.0 Adds Digital Signatures, Floating Windows and New Design Features for Displaying PDF Documents Online (PRWeb)
AjaxPDF extends its lead as the premiere ASP.NET PDF display solution with digital signatures plus hundreds of new display features. AjaxPDF is the easiest way to customize the online PDF document viewing, printing, form filling, saving, securing and signing experience. (PRWeb Jun 15, 2008) Read the full story at http://www.prweb.com/releases/ajaxpdf/2/prweb1019794.htm



FREE Subscription

Subscribe to our mailing list and receive new articles
through email. Keep yourself updated with latest
developments in the industry.

Name:
Email:

Note : We never rent, trade, or sell my email lists to
anyone. We assure that your privacy is respected
and protected.

_______________________________________

Recommended XML Books

cover
cover
cover
cover
cover
cover


 

 

FREE Subscription

Stay Current With the Latest Technology Developments Realted to XML. Signup for Our Newsletter and Receive New Articles Through Email.

Name:

Email:

Note : We never rent, trade, or sell our email lists to anyone. We assure that your privacy is respected and protected.

 

 

Add to My Yahoo!


New XML Books Titles - Best Seller's @ Amazon.com

Visit XML Training Material Guide Homepage

Technology helps engage students - how do classroom instruction and social dynamics change when the classroom is completely dependant on modern technology?

Dallas Web Design- local Dallas web design firm offers site design and backend system development