Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
| Search | Today's Posts | Mark Forums Read
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old June 4th, 2007, 07:43 AM
Authorized User
 
Join Date: Jan 2007
Location: , , .
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default insert values into an XML in classical asp

hi experts,
i'm new to XML so i hope you could help me on this one.
i'm working with XML files, what i need to do is to call an emty XML and fill in some information into it, like the name, address and all this kind of information, is there a way to insert values to an xml file. i have also a form where the user has to input insert some value, what i need is that when the user finish inserting the information and click on submit, these information he inserted into the form will be saved in the XML.

any help will be appreciated.

thanks

  #2 (permalink)  
Old June 4th, 2007, 08:05 AM
mhkay's Avatar
Wrox Author
Points: 18,487, Level: 59
Points: 18,487, Level: 59 Points: 18,487, Level: 59 Points: 18,487, Level: 59
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

You can tackle this using the DOM API, where you load the skeletal XML into a tree structure and then update it incrementally, or you can tackle it using XSLT, where you define a transformation from the skeletal XML to the completed XML, using the parameter values either as stylesheet parameters or as a secondary input document.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
  #3 (permalink)  
Old June 4th, 2007, 08:10 AM
Authorized User
 
Join Date: Jan 2007
Location: , , .
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks for your quick reply, but i told you, i'm new to xml so any examlples using the DOM will be very appreciated.
thanks

  #4 (permalink)  
Old June 4th, 2007, 08:36 AM
mhkay's Avatar
Wrox Author
Points: 18,487, Level: 59
Points: 18,487, Level: 59 Points: 18,487, Level: 59 Points: 18,487, Level: 59
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

I don't do ASP and I don't do DOM if I can avoid it; but most XML books have a chapter on DOM. In Wrox Professional XML most of the DOM examples are in JavaScript, but it should be fairly easy to translate that into ASP terms.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
  #5 (permalink)  
Old June 7th, 2007, 10:28 AM
Authorized User
 
Join Date: Jan 2007
Location: , , .
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thank you for the help.




Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple values insert into one field mateenmohd Classic ASP Basics 0 May 29th, 2007 02:11 AM
how to insert values in tables using php?? asalaam Pro PHP 3 April 4th, 2007 01:02 PM
how to insert values in tables using php?? asalaam SQL Server 2000 1 March 27th, 2007 11:23 AM
Insert calculated values using sqldatasource nuttylife2 ASP.NET 2.0 Basics 5 November 3rd, 2006 10:22 AM
How t o insert multiple values qazi_nomi Access ASP 2 May 3rd, 2005 12:45 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.