asp tutorials, asp.net tutorials, sample code, and Microsoft news from 15Seconds
Data Access  |   Troubleshooting  |   Security  |   Performance  |   ADSI  |   Upload  |   Email  |   Control Building  |   Component Building  |   Forms  |   XML  |   Web Services  |   ASP.NET  |   .NET Features  |   .NET 2.0  |   App Development  |   App Architecture  |   IIS  |   Wireless
 
Pioneering Active Server
 Power Search





Active News
15 Seconds Weekly Newsletter
• Complete Coverage
• Site Updates
• Upcoming Features

More Free Newsletters
Reference
News
Articles
Code Samples
Components
Tools
New
Free
Downloads
Vendors
FAQ
Feedback
Books
Links
DL Archives
Community
Messageboard
List Servers
Mailing List
WebHosts
Consultants
Tech Jobs
15 Seconds
Home
Site Map
Press
Legal
Privacy Policy
internet.commerce














internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

HardwareCentral
Compare products, prices, and stores at Hardware Central!

To create a file that your IE browser will recognise as XML, simply place these two lines at the top of your ASP page: IE will view it as an XML document using it's built in stylesheet (IE 5+)


Response.ContentType = "text/xml" Response.Write ""
Response.Write "<?xml version='1.0' ?>"

'----------------------------------------------------------
'Put your ASP code here now makes the XML document
'----------------------------------------------------------

Response.Write "<WEBSITES>"
Response.Write " <WEBSITE>"
Response.Write "   <URL>15seconds.com</URL>"
Response.Write " </WEBSITE>"
Response.Write " <WEBSITE>"
Response.Write "   <URL>internet.com</URL>"
Response.Write " </WEBSITE>"
Response.Write "</WEBSITES>"

Submitted by Ian Vink



email this code sample to a colleague

Related Articles
May 27, 1999 - Server-Side XML in ASP
With the upcoming release of Internet Explorer 5.0, it is much easier to use XML in Web applications. Here is some information on how to harness the power of the updated XML Document Object Model (DOM) on the server to parse and use XML data in ASP applications.
[Read This Article]  [Top]
Nov 25, 1999 - XMLHTTP: Super Glue for the Web
Kyle Patrick explains how using the XMLHTTPConnection object that Microsoft packaged with its MSXML parser is a fast, free, and powerful method for communication between any client and server application that supports COM objects. Using this, instead of CGI, means you can have a client-server interaction between the browser and the Web server that can be done without changing the Web page. Sample code and URLs are included.
[Read This Article]  [Top]
Jun 12, 2000 - GUI Input: Solving the Hard Refresh Problem Using XML and ASP
Doing a hard refresh every time the client needs more information makes the interface difficult for a user to use in complex applications and causes unnecessary strain on the network because frequently the same data is being sent to the client repeatedly. Dennis Hurst examines the problem and provides a XML/ASP solution.
[Read This Article]  [Top]
Nov 2, 2000 - Retrieving Dynamic XML from SQL Server 7.0 and 2000
SQL Server is packed with features for retrieving XML documents. Steven Woods offers a demonstration of extending a SQL Query via the RAW, AUTO, and EXPLICIT modes to illustrate the functionality available. The article then discusses the concept of templates, which allow the creation of dynamic parameter-based XML documents, and how templates can be executed via Visual Basic.
[Read This Article]  [Top]
Nov 17, 2000 - Somewhere in XML
This article discusses how Windows DNA affects team development and how it can be improved using XML, XSLT, and XML Schemas.
[Read This Article]  [Top]
Dec 11, 2000 - SQL Server 2000 and XfA
At XML 2000 last week in Washington, D.C., David Turner of Microsoft introduced a new technology called XfA. Get a glimpse of the technology in this summary report.
[Read This Article]  [Top]
Feb 5, 2001 - Binding Client Side Controls Dynamically to an XML Data Source Object
The XML data island in IE 5.x provides a simple and convenient way to dynamically alter the content of a Web page using data stored either locally or remotely in XML format.
[Read This Article]  [Top]
Mar 5, 2001 - Distributing Server Load to the Client with XML and XSL
Using traditional ASP, Web servers are forced to do all the work in creating a page. This includes getting the data, formatting the output, and sending it to the client. With XML and XSL, the server only needs to get the data in XML format and send that and the XSL to the client. The client will then use its CPU power to transform the XML into HTML using the XSL style sheet. This approach will allow your Web servers to handle many more concurrent users.
[Read This Article]  [Top]
Apr 9, 2001 - Creating an In-Memory Database Using XML and XPath -- Part 1
In this article Niall Ginsbourg takes a look at using Microsoft's XML Parser, along with its in-built XPath query processor, to create an In-Memory Database that provides superior searching operations over an equivalent SQL Server solution.
[Read This Article]  [Top]
Apr 10, 2001 - Creating an In-Memory Database Using XML and XPath -- Part 2
Learn how to successfully apply an IMDB to large volumes of data and still get phenomenal searching speeds that outperform a dedicated SQL Server database.
[Read This Article]  [Top]



Support the Active Server Industry

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs