惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

腾讯CDC
IT之家
IT之家
有赞技术团队
有赞技术团队
WordPress大学
WordPress大学
Apple Machine Learning Research
Apple Machine Learning Research
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
人人都是产品经理
人人都是产品经理
The Cloudflare Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 【当耐特】
V
V2EX
Last Week in AI
Last Week in AI
H
Help Net Security
The GitHub Blog
The GitHub Blog
S
SegmentFault 最新的问题
F
Fortinet All Blogs
I
InfoQ
宝玉的分享
宝玉的分享
A
About on SuperTechFans
MongoDB | Blog
MongoDB | Blog
Microsoft Azure Blog
Microsoft Azure Blog
Blog — PlanetScale
Blog — PlanetScale
B
Blog

博客园 - hateyoucode

http://tengine.taobao.org/ Mysql只Union用法 比较详细的mysql的几种连接功能分析,只要你看完就能学会的好东西 jq 判断单选是否选中 MSSQL中的bit类型 js 判断textarea 不为空 C# Split 分隔符为字符串及空格的处理 [转]asp.net中时间差的问题 [转]C# Array 数组 及 一些操作 [转]C#中out 及 ref 区别 [转]使用c# 模拟网站登录 RegisterStartupScript和RegisterClientScriptBlock的区别 asp.net 动态二维数组 - hateyoucode - 博客园 asp+ajax asp中ajax的中文乱码 - hateyoucode - 博客园 css html span 块状不换行 我们应该明确几个问题 asp.net操作XML PHP Header用于页面跳转要注意的几个问题总结 - hateyoucode - 博客园 关于PHP header函数跳转的问题 - hateyoucode - 博客园
生成xml - hateyoucode - 博客园
hateyoucode · 2010-06-03 · via 博客园 - hateyoucode

<%
bitFileExists=true
Dim   strFilename,strXMLFile
  strFilename   =   "test.xml "
  strXMLFile=server.mapPath(strFilename)
  set   oXML   =   server.createObject( "Microsoft.XMLDOM ")
  oXML.async   =   False
  'oXML.load(strXMLFile)
  'oXML.loadXML   " <?xml   version= " "1.0 " "   encoding= " "gb2312 " "   ?> "
  If   bitFileExists   Then
    set   oXMLf=oXML.appendChild(oXML.createElement( "Server1 "))
    set   oXMLs2=oXMLf.appendChild(oXML.createElement( "Server2 "))
  End   If
  for   i=0   to   9
  set   oXMLRec   =   oXMLs2.appendChild(oXML.createElement( "Host "))
  Set   hostnameAtt   =   oXML.createAttribute( "id ")
  hostnameAtt.Text   =   i
  oXMLRec.attributes.setNamedItem   hostnameAtt
  next
 
  set   oProcess=oXML.createProcessingInstruction( "xml ",   "version= '1.0 '   encoding= 'gb2312 ' ")
  oXML.insertBefore   oProcess,oXML.childnodes(0)
 
  oXML.save   strXMLFile
  set   oXML   =   nothing

%>