ado|dom|stream|xml| to create Xmldom method is found in L-blog author Wei Huijie There, has not heard of this method, by the way to tidy up the ADODB.stream generation method.
1. Use of XMLDOM Dim xmlstring
Xmlstring= "Dim xmldoc
Set xmldoc = Server.CreateObject ("Msxml2.domdocument")
Xmldoc.loadxml (xmlstring)
Xmldoc.save (Server.MapPath ("test.htm"))
Set xmldoc=nothing
The original is a little bit of a mistake, This paragraph should be may be negligent
2. Use of Xmldom,adodb.stream Dim htmlstring
Htmlstring= "
Set Maker=server. CreateObject ("ADODB.stream")
Maker. type=2 ' read in this mode
Maker.mode=3
maker.charset= "Utf-8"
Maker.open
Maker. WRITETEXT htmlstring
Maker. SaveToFile server. MapPath ("test.htm"), 2
Maker.flush
Maker. Close
Set maker=nothing
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.