3143Create XML Documents from Access Outputhttp://www.codeave.com/asp/code.asp?u_log=149Active Server Pages allow for the easy ability to create dynamic views of your data on a web server, but you can also create "static" documents on the server. This can be particularly useful if you wish to distribute your information on CD or in virtually any document form. The following example will utilize our state info db. After reading the contents of the db instead of writing output to the browser html text is written to the server on a file with the .xml file extension. By placing appropriate XML tags around the Db output the XML document that is created on the server than can be read by the browser or any appropriate means. The current time (server time) is also added to show that all the XML documents is created dynamicallyASP > Tips and Tutorials > XML and ASPOct 10, 2006
Pass-Guaranteed is your source for the Microsoft 70-225 exam. With our 70-225 Exam Resources, you can be rest assured that you will be fully prepared to take on your 70-225 Exam. Our Exams are written and formatted by Top senior IT Professionals working in today's prospering companies and data centers. All of our practice exams including the 70-225 exam will prepare you for success. 70-225 is a challenging exam, with our 70-225 study guide, you can feel safe with our question and answer explanations that will help you in obtaining your successful completion of your 70-225 exam.
By now, most of our readers are familiar, at least in principle, with XML - the w3c's platform neutral data markup language. However not everyone knows how to use XML with ASP. In this article, I'll run you through using ASP and JScript to open and read XML files. in the next article, I'll show you how to create and modify XML with ASP.
The example I'm going to show you is in use on my office intranet, for the purposes of identifying who is logged in. since all the machines in the office have a static, unique IP, I've used Request.ServerVariables("remote_host") to identify the machine, and XML to map machine to user. It's a little courtesy app, and also allows me to restrict administrative functions to only five machines in the entire office.
Did you know that the ADO Recordset contains a Save method that can save the contents of a Recordset to an XML file? In fact, in an upcoming article on 4Guys this method will be discussed. One disadvantage of using this approach, though, is that the XML produced by the Recordset is anything but readable. Plus, there is a ton of information there, describing gobs of data for each column in the Recordset (its data type, precision, NULLability, maxlength, etc.). Additionally, when saving a Recordset to XML, the XML node names are archaic: each row's node name is z:row; the parent node is named rs:data.
Dim BlnLinkBack, sReciprocalURL, sReciprocalLinkURLText
BlnLinkBack=False
sLinkBackURL="www.codefixer.com" 'this is the URL we wish to check for
sReciprocalURL= "www.codefixer.com/tutorials/index.asp" 'This is the URL
'we are going to check against
XML stands for Extensible Markup Language. XML can be used in many ways and one of which is 'data storage'. This is the one we will be exploring in this article. XML along with XSL ( Extensible Stylesheet Language ) can by used to present data on the web pages. XML provides the data and XSL allows us to present it the way we want. Remember though that not all browsers support XML on the client side, only Micrsoft Internet Explorer 5.0 and above support XML. XML can also be used to perform RPC ( Remote Procedure Call ). Actually this capability of XML to allow communication between distant applications is so strong that Microsoft has developed SOAP ( Simple Object Access Protocol ) specification which uses XML to allow communication between remote applications. XML can be used for a lot more purposes which I haven't mentioned here. Also keep in mind that Microsoft's future .NET platform will make use of XML even more than any tool does today. ASP+, ADO+ and others will use XML to define and present data. So if you are comfortable with XML today, it will help you in the near future when you will be getting yourself ready to develop applications in the revolutionary platform called Microsoft .NET.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.