dom|xml| generates XML using XML DOM under ASP
To generate the XML document in the previous example, we can build it using ASP. We'll create a simple ASP page that allows you to create an XML document with just the click of the button. To do this, we used an ASP Web page with a Windows Scripting widget to generate XML. We will use Windows Script Component Wizard to generate the initial code. (If you don't have a wizard, you can go to Microsoft's Scripting section to find it.) )
Creating Script Components
Run Windows Script Component Wizard at the beginning. In the first window, enter XMLDOM as the component name, and then click Next. Make sure VBScript and the support active Server pages option are selected in the second window, and then click Next two times. In window fourth, enter Createxml as the only method for our script object. Click Next two times and click Finish at the end. Once these things have been done, Wizard creates the components and adds them to your desktop.
At this point, we get the basic structure of the component, but it does not contain any functionality, so add functionality. To do this, double-click the shortcut key for the XMLDOM on the desktop. When finished, Windows displays the initial code on Notepad. Note that the component itself is an XML document. To add createxml code, we'll create a subroutine to replace the function. So, delete the following line
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service