Today's hosts that support ASP generally use Microsoft OS, and these OS are generally Win2K Server and above, even if the XML Parser is not installed, XML Parser resolution is also supported.
And XMLDOM also has a .save method. Through this we can generate an HTML file on the host that is not fso.
First, a little. Note that the normalization of HTML and XML code.html This is no problem, the standard write should be but if it is XML It is definitely wrong because the XML node property value requires in quotation. The same is also wrong, because XML needs to be closed, you can write < / INPUT>, but input> is also wrong, because XML is case sensitive to the INPUT XML node, its text value is empty, so it can be written This is in line with XML specification. For example, in HTML
= 成 成 成 <<<= i i i i i i i i To write
There are also special characters ",>, <, ', &, nodes are not allowed to cross, etc., first say so much, as for the XML documentation is not the focus of this article, please refer to the relevant information.
How to generate an HTML file with FSO here. But if you use FSO, your Cornership is to generate such an HTML file.
body> html>
It is less written here for head>, for HTML, the browser can tolerate. But to generate a document with XML specification, it must be
p> body> html>
How to store this XML formatted document into the server? DIM XmlstringXMLString = "" & chr (10) & "
" & chr (10) & " p> "& chr (10) & " body>" & chr (10) & " html>" DIM XMLDocSet Xmldoc = Server.createObject ("msxml2.domdocument") xmldoc.loadxml (xmlstring) XmLDoc.save (Server.MAppath "Test.htm")) SET XMLDOC = Nothing This is used here, which loads a paragraph XML Document to the object. Why do you want to generate the HTML to write into an XML specification because of loadingXML () The method only supports text strings that meet XML specification
Of course, you need to have write rights to the directory.