Quick Search for:  in language:    
XML,ASP,Learn,whatever,wanted,know,article,st
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
ASP/ VbScript Stats

 Code: 196,174. lines
 Jobs: 103. postings

 How to support the site

 
Sponsored by:

 
You are in:
 

Does your code think in ink?
Login


 

 


Latest Code Ticker for ASP/ VbScript.
Server Side PDF
By Igor Krupitsky on 11/20


Click here to see a screenshot of this code!Multiple Web Sites on one IP
By Richard J Mackey on 11/20

(Screen Shot)

Click here to see a screenshot of this code!Multiple websites on One IP
By Richard J Mackey on 11/20

(Screen Shot)

Click here to see a screenshot of this code!Combo-Box with Auto-Complete
By Mark Kahn on 11/18

(Screen Shot)

Click here to see a screenshot of this code!RegEx pattern match in VBScript
By moppy on 11/18

(Screen Shot)

Click here to see a screenshot of this code!Text-to-Speech in MS Outlook
By Nick Sumner on 11/18

(Screen Shot)

Click here to see a screenshot of this code!Rapid Classified Board v1.0 (beta)
By Gurgen Alaverdian on 11/17

(Screen Shot)

Adjust a GIF's Hue/Sat/Lum
By Mark Kahn on 11/17


Search Engine
By vsim on 11/17


Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!

Affiliate Sites



 
 
   

___XML as Data Source Part 1 of 3 (Updated)

Print
Email
 

Submitted on: 12/10/2002 4:26:57 AM
By: Amit Mathur  
Level: Intermediate
User Rating: By 19 Users
Compatibility:ASP (Active Server Pages), HTML

Users have accessed this article 7231 times.
 
 
     Learn whatever you ever wanted to know about XML and ASP. This article starts from the very basics and ultimately creates something useful. Written in an easy to understand language. Unlike other articles which contain a lot of technical jargon, this article rather emphasises on showing by doing. Give it a good reading. Comments and suggestions are always welcome. Thanks.

This article has accompanying files
 
 
Terms of Agreement:   
By using this article, you agree to the following terms...   
1) You may use this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this article from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.

XML as Data Source

Written by Amit Mathur, India on 6th Dec., 2002

Part 1 of 3

Explore the exciting world of XML !

This is first of a series of 3 articles that I will write to illustrate the use of XML as Data Source.  I have divided this tutorial into 3 chunks. After this tutorial, you will be able to manipulate and play with XML Data files in the same way as you do with MS Access. In addition to that, there are certain advantages of using XML, over MS Access. I introduce these advantages in the text, as we proceed on. The article has been organized in the increasing order of difficulty.


Section 1
Retrieving XML using ASP

F or most of the net based organizations, the data stored in their databases are their sole property. How this data can be organized more effectively and efficiently using XML, is the theme of this article. 

When you create a database in MS Access, even if it is empty, it takes a lot of space just for structure. Right ? Why waste this much space just for structure when you can store information about at least a hundred members of your site in the same space. When you store data as XML, it is stored in the form of a simple text file with the extension .XML, along with a few tags. For the time being, I will not go in the detailed theory of explaining the intricacies of XML, but rather concentrate on how to access and manipulate it using ASP.

Before we begin, what all is required for your web server to be able to serve XML. For the Server Side XML Processing, IE 5.0+ must be installed on the server. This is because we need XML DOM (XML Document Object Model), which is basically an XML Parser, which is provided as a component of IE5.


Now we are ready to write our scripts. We need two things. 

  • Data Source

  • ASP Script to manipulate the data.

Let us first create a data source. Suppose we want to maintain a resource repository in which we want to include a brief description of the resource, its link on the web and its link text. The Sample XML data source for this can be:

(Contents of File Resource.XML)

<?xml version="1.0" ?> 
<Resource_Repository>
    <Resource>
        <text>
            This program allows you to encrypt your HTML Source Codes so that no one can steal 
            and Copy Paste them in their own site.
        </text> 
        <link>
            <url>
                ftp://ftp.cedium.net/internet/htmlcrypt/encryptHTML.exe
            </url> 
            <linetext>
                HTML Source Code Encryption
            </linetext> 
        </link>
        <Size>
               736 KB
        </Size> 
    </Resource>

    <Resource>
        <text>
            DOS Based Eliza Program. Eliza is a Computer program that can talk to you like a human                being. Makes use of Artificial Intelligence.
        </text> 
        <link>
            <url>
                http://hps.elte.hu/~gk/Eliza/ELIZA.EXE
            </url> 
            <linetext>
                Eliza Chatterbot
            </linetext> 
        </link>
        <Size>
                36 KB
        </Size> 
    </Resource>
</Resource_Repository>

Now we write a script to access this data and display it on the web page. I result will be generated in a very simple format, to make the ASP Code simple to understand.

To begin with, we need to create an XML DOM object on the server. This can be done with a line as simple as :

<% Set objXML = Server.CreateObject("Microsoft.XMLDOM") %>

Now we need to give the path of our data source. So add the following line to the code:

<% 
objXML.Load (Server.MapPath("Resource.xml"))

If objXML.parseError.errorCode <> 0 Then
Response.Write "<p><font color=red>Error loading the Resource file.</font></p>"
Response.End
End If
%>

If the XML DOM Parser throws any error, then we catch that and display the error message.

We want to display the list of all the resources in the file Resource.xml. We know that the resources are enclosed within <Resource> tag. So, the next step is to create a list of all the objects under the tag <Resource>. 

<%
Set objLst = objXML.getElementsByTagName("Resource")
%>

The Length property of object list indicates the number of items in the list. For example, in our example of Resource.xml, there are two records under the <Resource> tag. So, objLst.Length shows the value 2, when displayed.

<%
Response.write "There are " & objLst.Length & " resources on this site."
%>


This is quite interesting upto now. What about accessing individual sub-items ? Suppose we just want to display the URLs of all the resources in our 'database', how can we do that ? 

Create one more object, now referring to the items inside the object list. The sub-items can be accessed by using childNodes(index). See this code for further understanding : 

<% 
' for each resource in the list
For i = 0 To objLst.Length - 1 

Set subLst = objLst.item(i)

Response.write "<P>" & vbcrlf 
Response.Write "<a href='" & subLst.childNodes(1).childNodes(0).Text & "'>" _
& subLst.childNodes(1).childNodes(0).Text & "</a>" 
Next
%>

A careful look at the structure of the XML document that we had created earlier reveals that <URL> is inside <Link> which is second element of the <Resource> (first being <text>). If we start our indexing from 0 (Zero), then <Link> is the first element of <Resource> and <URL> is the Zeroeth element inside <Link>. That's why I have written the line:

subLst.childNodes(1).childNodes(0).Text

which is nothing but <URL>. Re-read the previous paragraph if you are still not clear and I am sure you will get it soon.

So, the final source code of the ASP file we have created for displaying the URL of all the resources in our database is:

<% 
' creating an object of XMLDOM
Set objXML = Server.CreateObject("Microsoft.XMLDOM") 

' Locating our XML database
objXML.Load (Server.MapPath("Resource.xml"))

' checking for error
If objXML.parseError.errorCode <> 0 Then
Response.Write "<p><font color=red>Error loading the Resource file.</font></p>"
Response.End
End If

' referring to Resource 
Set objLst = objXML.getElementsByTagName("Resource")
Response.write "There are " & objLst.Length & " resources on this site ."

' for each resource
For i = 0 To objLst.Length - 1 

' refer to sub-item
Set subLst = objLst.item(i)

'display the URL
Response.Write "<a href='" & subLst.childNodes(1).childNodes(0).Text & "'>" _ 
& subLst.childNodes(1).childNodes(0).Text & "</a>"
Next 
%>

Of course, you would need to add all those formatting HTML tags to make this list more attractive. But the core remains the same.


Conclusion:

In this article, we learned how to retrieve the 'records' from XML 'database'. For complete Database related operations, we must know how to insert, update and delete the records from the Scripts. In the next article, we will see how to perform these operations as well.


Section 2
Saving Information in XML Files Using ASP

 

N ow when you know how to retrieve data from XML files, the next thing you have to learn is, how to create these XML files from ASP. In this Section of the tutorial, I demonstrate how to store data in XML files.

Advantages of storing data in XML, as compared to in MS Access are:

  • XML is platform independent. You can export your data to Non-Windows OS also.

  • XML data contains semantics along with it. This means that you can associate a name and property with data. Further, it is Hierarchical data. So, it gets all those advantages of storing data in the form of Trees, in-built in it !

  • XML consumes much-much less space than MS Access data.

  • XML data can be used in EDI (Electronic Data Interchange). It can also be used in presenting the data in different formats. Like publishing the same data in PDF, HTML, DOC, PS ... formats.

There are many more advantages of using XML. Try google to find out more (rather bookish) advantages. That's not more important for us. We continue with our business - Saving data (or information, if it really means!) to XML Files.

In this exercise, three files are involved:

  • HTML Form File

  • ASP Processing Script

  • XML Data File

HTML Form File:

Let us first create the HTML Source file, the easiest of three. The screen looks something like this. 


Add Resource To Database


Enter the information about the resource in the form below : 

Resource Title

Resource URL

Resource Description

Size 

(This won't work here. To see a demo, try the link provided at the end)

Sample Data Entry Screen

The various form field names are given as: title, url, description, size and Submit, in the top-down order as shown above.

Now we write an ASP Script, that will store this data in the XML file. In the current section, we concentrate on just saving the data in a file. If the file already exists, then it will be deleted and then again, contents will be written into it. In the next section, we will see how to append data to an existing file.

So, we proceed further. As done in previous section, we first create an object of Microsoft.XMLDOM.

<%
Set objXML = server.CreateObject("Microsoft.XMLDOM") 
objXML.preserveWhiteSpace = True
%>

Here the second line indicates that we want to preserve the White Spaces in the file. Now we create the root element of the document and attach it with the XML document. Look at the XML document structure given at the beginning of this article, to find that the root element is Resource_Repository.

<%
Set objRoot = objXML.createElement("Resource_Repository") 
objXML.appendChild objRoot
%>

Now we create a new element and place it under Resource_Repository. A quick glance at the structure reveals that the direct child of Resource_Repository is Resource. The immediate child of Resource is <text>, which stores the resource description. So, three steps are involved in creating a child.

  • Create the element

  • Assign value to the element (optional)

  • Make this new element child of some other element.

The following code demonstrates the first and last of above steps.

<%
'Create an element, "Resource".
Set objResource = objXML.createElement("Resource")

' Make <Resource> a child of Root
' objRoot.appendChild objResource
%>

Now we create another element <text> which stores the description of the resource. We follow all the 3 steps mentioned earlier in this case. Try to figure them out in the following code:

<%
'Create a new element, "text". This stor ' es Description of the resource
Set objText = objXML.createElement("text")

' Assign the description to the newly cr ' eated object
objText.Text = Request.Form("description")

' Make Text (description) a child of Res ' ource
objResource.appendChild objText
%>

Easy, isn't it ? Now look at the following code and observe the symmetry. Please note that this code is written in accordance with the structure of XML document (Resource.xml) defined at the start of the article.

<%
' create another child of <Resource> ' ie <link>
Set objLink = objXML.createElement("Link")

' make <link> a child of <Resouce> '
objResource.appendChild objLink

' create one more element - <url>&nbs; ' p;
Set objUrl = objXML.createElement("url")

' capture URL value from the form and as ' sign it to
' the newly created <url> element
' objUrl.Text = Request.Form("url")

' make <url> a child of <link>
' objLink.appendChild objUrl

' create a <linetext> element, assign ' it a value 
' and make it a child of <link>
Set objLineText = objXML.createElement("linetext")
objLineText.Text = Request.Form("title")
objLink.appendChild objLineText


' and finally create an element <Size ' > and make
' it a child of <Resource>
Set objSize = objXML.createElement("Size")
objSize.Text = Request.Form("size")
objResource.appendChild objSize
%>

Now we are done with the structure of the document. The next step is to create a Processing Instruction (PI) indicating the XML file version, which appears as the first line of any XML document.

<%
'Create the xml processing instruction.< ' br> Set objPI = objXML.createProcessingInstruction("xml", "version='1.0'")

'Append the processing instruction to th ' e XML document.
objXML.insertBefore objPI, objXML.childNodes(0)
%>

And as a penultimate step, save the XML file.

<%
'Save the XML document.
objXML.save strXMLFilePath & "\" & strFileName
%>

Assuming strXMLFilePath and strFileName to be two variables. And finally, free all the objects.

<%
'Release all of your object references.< ' br> Set objXML = Nothing
Set objRoot = Nothing
Set objResource = Nothing
Set objText = Nothing
Set objLink = Nothing
Set objUrl = Nothing
Set objLineText = Nothing
Set objSize = Nothing
%>

This concludes our discussion of saving data to XML files. Before we wrap-up, here is the complete code, which is well formatted in the form of a function.

<%

'--------------------------------------- ' -----------------------------
'The "SaveFormData" Function accepts two ' parameters.
'strXMLFilePath - The physical path wher ' e the XML file will be saved.
'strFileName - The name of the XML file ' that will be saved.
'--------------------------------------- ' -----------------------------

Function SaveFormData(strXMLFilePath, strFileName)

'Declare local variables.
Dim objXML
Dim objRoot
Dim objField
Dim objFieldValue
Dim objattID
Dim objattTabOrder
Dim objPI
Dim x


'Instantiate the Microsoft XMLDOM.
Set objXML = server.CreateObject("Microsoft.XMLDOM")
objXML.preserveWhiteSpace = False


'Create your root element and append it ' to the XML document.
Set objRoot = objXML.createElement("Resource_Repository")
objXML.appendChild objRoot



'Create an element, "Resource".
Set objResource = objXML.createElement("Resource")

' Make <Resource> a child of Root
' objRoot.appendChild objResource

'Create a new element, "text". This stor ' es Description of the resource
Set objText = objXML.createElement("text")

' Assign the description to the newly cr ' eated object
objText.Text = Request.Form("description")

' Make Text (description) a child of Res ' ource
objResource.appendChild objText


' create another child of <Resource> ' ie <link>
Set objLink = objXML.createElement("Link")

' make <link> a child of <Resouce> '
objResource.appendChild objLink

' create one more element - <url>&nbs; ' p;
Set objUrl = objXML.createElement("url")

' capture URL value from the form and as ' sign it to
' the newly created <url> element
' objUrl.Text = Request.Form("url")

' make <url> a child of <link>
' objLink.appendChild objUrl

' create a <linetext> element, assign ' it a value 
' and make it a child of <link>
Set objLineText = objXML.createElement("linetext")
objLineText.Text = Request.Form("title")
objLink.appendChild objLineText


' and finally create an element <Size ' > and make
' it a child of <Resource>
Set objSize = objXML.createElement("Size")
objSize.Text = Request.Form("size")
objResource.appendChild objSize


'Create the xml processing instruction.< ' br> Set objPI = objXML.createProcessingInstruction("xml", "version='1.0'")

'Append the processing instruction to th ' e XML document.
objXML.insertBefore objPI, objXML.childNodes(0)


'Save the XML document.
objXML.save strXMLFilePath & "\" & strFileName


'Release all of your object references.< ' br> Set objXML = Nothing
Set objRoot = Nothing
Set objResource = Nothing
Set objText = Nothing
Set objLink = Nothing
Set objUrl = Nothing
Set objLineText = Nothing
Set objSize = Nothing
End Function


'Do not break on an error.
On Error Resume Next


'Call the SaveFormData function, passing ' in the physical path to 
'save the file to and the name that you ' wish to use for the file.
SaveFormData "C:\Inetpub\wwwroot\save\data","Resource.xml"


'Test to see if an error occurred, if so ' , let the user know.
'Otherwise, tell the user that the opera ' tion was successful.
If err.number <> 0 then
Response.write("Errors occurred while saving data.")
Else
Response.write("<center><h2>Data Entry Successful</h2><P>The resource has been successfully added in the database.</center> ")
End If
%>

Download the file associated with the article and test the code on your machine. Do not forget to change the path to which the file has to be saved. (This line has been shown in strong fonts in above code listing).


Section 3
Appending data to Existing XML Files 

I

n Section 2, we saw how we can save form data to XML files. But if the file already existed, then it used to get replaced with the new ones. Most of the times we want to append data, i.e., add new data to the existing ones. In this Section of the tutorial, we look at how we can do so.

The major difference between appending and creating new file is the Processing Instruction (PI) mentioned in the earlier section. When we append data to an existing file, we do not add PI to it (obviously, since it is already there!).

So, we first need to check whether the file already exists. This can be done with the following simple code:

<%
blnFileExists = objXML.Load(strXMLFilePath & "\" & strFileName)
%>

If the file already exists, then we need to set objRoot to the already existing Root element (Resource_Repository). If the file does not exist, we create a new root element and attach it to XML document, as we did in Section 2.

<%
'Test to see if the file loaded successf ' ully. 
If blnFileExists = True Then 
'If the file loaded set the objRoot Obje ' ct equal to the root element 'of the XML document. 
Set objRoot = objXML.documentElement 
Else
 'Create your root element and append it to the XML document.
Set objRoot = objXML.createElement("Resource_Repository")
objXML.appendChild objRoot 
End If
%>

After this we extract the data from the form and store it in the elements, exactly in the same way as we did in Section 2. In the end, write the following code:

<%
' Check once again to see if the file lo ' aded successfully. If it did 
' not, that means we are creating a new ' document and need to be sure to 
' insert the XML processing instruction. '  
If blnFileExists = False then 
'Create the xml processing instruction.& ' nbsp;
Set objPI = objDom.createProcessingInstruction("xml", "version='1.0'") 
'Append the processing instruction to th ' e XML document. 
objDom.insertBefore objPI, objDom.childNodes(0)
End If
%>

The complete code for appending the data is:  

<%

'--------------------------------------- ' -----------------------------
'The "AppendFormData" Function accepts t ' wo parameters.
'strXMLFilePath - The physical path wher ' e the XML file will be saved.
'strFileName - The name of the XML file ' that will be saved.
'--------------------------------------- ' -----------------------------

Function AppendFormData(strXMLFilePath, strFileName)

'Declare local variables.
Dim objXML
Dim objRoot
Dim objField
Dim objFieldValue
Dim objattID
Dim objattTabOrder
Dim objPI
Dim x


'Instantiate the Microsoft XMLDOM.
Set objXML = server.CreateObject("Microsoft.XMLDOM")
objXML.preserveWhiteSpace = False



blnFileExists = objXML.Load(strXMLFilePath & "\" & strFileName)


'''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''
' This part is changed '
'''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''


'Test to see if the file loaded successf ' ully. 
If blnFileExists = True Then 
'If the file loaded set the objRoot Obje ' ct equal to the root element 'of the XML ' document. 
Set objRoot = objXML.documentElement 
Else
'Create your root element and append it ' to the XML document.
Set objRoot = objXML.createElement("Resource_Repository")
objXML.appendChild objRoot 
End If

'''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''

'Create an element, "Resource".
Set objResource = objXML.createElement("Resource")

' Make <Resource> a child of Root
' objRoot.appendChild objResource

'Create a new element, "text". This stor ' es Description of the resource
Set objText = objXML.createElement("text")

' Assign the description to the newly cr ' eated object
objText.Text = Request.Form("description")

' Make Text (description) a child of Res ' ource
objResource.appendChild objText


' create another child of <Resource> ' ie <link>
Set objLink = objXML.createElement("Link")

' make <link> a child of <Resouce> '
objResource.appendChild objLink

' create one more element - <url>&nbs; ' p;
Set objUrl = objXML.createElement("url")

' capture URL value from the form and as ' sign it to
' the newly created <url> element
' objUrl.Text = Request.Form("url")

' make <url> a child of <link>
' objLink.appendChild objUrl

' create a <linetext> element, assign ' it a value 
' and make it a child of <link>
Set objLineText = objXML.createElement("linetext")
objLineText.Text = Request.Form("title")
objLink.appendChild objLineText


' and finally create an element <Size ' > and make
' it a child of <Resource>
Set objSize = objXML.createElement("Size")
objSize.Text = Request.Form("size")
objResource.appendChild objSize


'''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''
' This part is changed'
'''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''

'Check once again to see if the file loa ' ded successfully. If it did
'not, that means we are creating a new d ' ocument and need to be sure to
'insert the XML processing instruction.< ' br> If blnFileExists = False then

'Create the xml processing instruction.< ' br> Set objPI = objDom.createProcessingInstruction("xml", "version='1.0'")

'Append the processing instruction to th ' e XML document.
objDom.insertBefore objPI, objDom.childNodes(0)
End If

'''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''

'Save the XML document.
objXML.save strXMLFilePath & "\" & strFileName


'Release all of your object references.< ' br> Set objXML = Nothing
Set objRoot = Nothing
Set objResource = Nothing
Set objText = Nothing
Set objLink = Nothing
Set objUrl = Nothing
Set objLineText = Nothing
Set objSize = Nothing
End Function


'Do not break on an error.
On Error Resume Next


'Call the AppendFormData function, passi ' ng in the physical path to 
'save the file to and the name that you ' wish to use for the file.
AppendFormData "C:\Inetpub\wwwroot\append\data","Resource.xml"


'Test to see if an error occurred, if so ' , let the user know.
'Otherwise, tell the user that the opera ' tion was successful.
If err.number <> 0 then
   Response.write("Errors occurred while saving data.")
Else
   Response.write("<center><h2>Data Entry Successful</h2><P>The resource has been successfully added in the database.</center> ")
End If
%>

Hope you enjoyed this article. But this is still not over. XMLDOM contains rich set of functions and some of them are very amazing. I will continue to write on this series. Explore this whole new world of XML. This is really exciting ! 

(I am in the Final Year of my B.E. in Computer Engineering and my Final Year project is development of a Complete Database Management System (DBMS) for storing and manipulating XML and a new query language XQL much like XQuery, which will be used to query XML data just as we today use SQL for RDBMS.)

In the end, visit my two web sites and I hope you will like both of them:

  • http://www.vyomworld.com  : This contains a huge source code library, 100's of Placement Papers of companies world wide, GRE Antonym test of 1208 Questions, GRE Word List, Search Engine and Free Professional Certification. 

  • http://amitmathur.8m.com :  This contains eBooks on Compiler Programming, Virus Programming, Online tests on C++, Java, Computer Fundamentals, Sybase, etc, TSR Articles, Discussion Forum, my resume, numerous articles written by me on hacking and IP Addressing and some contributions by the visitors and their comments.

Comments, Suggestions, Criticism ? Mail me directly from the web page: http://amitmathur.8m.com/mailme.html

If you have some really exciting ASP Scripts and want to host them on an ASP server free of cost without ADs, contact me and I will host them free for you on my website. Keep writing good and original scripts.

Thanks.

Please vote and support this effort.


winzip iconDownload article

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this article, you agree to the following terms...   
1) You may use this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this article from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.
 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this article(in the Intermediate category)?
(The article with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
12/11/2002 9:26:13 AM:
Thankyou for the XML lesson. Please hurry with 2 and 3. Excellent!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/12/2002 1:51:44 PM:Rafal Krolik
Man, I could kiss you for this explanation. I have been looking for a nice, clean, down to the point example like this. Thank you
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/12/2002 5:11:21 PM:
Amit could you email me at jeffritchie@iprimus.com.au in regards to this tutorial, have a huge favour to ask (don't worry wont take much of your time). Cheers, It rocks btw five stars
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/13/2002 6:51:09 AM:Thushan Fernando
nice tutorial... just a comment to the guy(or girl) above... iprimus is a good dialup ISP.. I'm with Optus cable now but we used iPrimus for some testing under dialup connections... the only proper ISP that implements true nodownload/time limits for a fixed price... something like this when we used dialup would have been good...
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/18/2002 11:12:17 AM:
Thanks for the excellent tutorial. I can't wait to read the next 2 installments.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/10/2003 5:19:03 AM:John Goodman
It really is a great practical tutorial.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/18/2003 9:42:03 PM:Lev Shamilov
Excelent article, no wonder you won the contest. Thanks.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/22/2003 10:22:01 PM:
Absolutely awesome article! I've been banging my head against a brick wall for 2 days now, with ASP.NET, Javascript, VBscript confusing the heck out of me - a good, clear, concise explanation. Looking forward to parts 2 and 3!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/21/2003 1:50:28 PM:Nick Brabant
Awsome, ive been using access with my site forever now, and constantly experiencing bandwidth issues. After i read your article, i wrote a working xml page, and now i have a quicker site, and less hassle with access, you did a great job, thanks, 5 round thingys! :D
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/9/2003 8:35:04 AM:
10x for this line: Set objXML = Server.CreateObject("Microsoft.XMLDOM") that was what i needed to start my code your code is a bit messy and there are easier and better ways of doin' that
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/3/2003 1:07:14 PM:Nathanael B
Wow, this is amazing. (5 globes) Thanks so much for sharing!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/4/2003 8:01:08 AM:Suresh pedireddi
Really cool explanation about XML in ASP. Most wanted Part 2 and part 3
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this article has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular article, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | ASP/ VbScript Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.