<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>爱周末 &#187; asp</title>
	<atom:link href="http://zhoumo123.cn/tag/asp/feed" rel="self" type="application/rss+xml" />
	<link>http://zhoumo123.cn</link>
	<description>知识分享，共同进步。zhoumo123.cn</description>
	<lastBuildDate>Thu, 07 Nov 2019 05:53:49 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.0.1</generator>
	<item>
		<title>vbscript 如何改变日期格式（月份天数补零）</title>
		<link>http://zhoumo123.cn/asp/282.html</link>
		<comments>http://zhoumo123.cn/asp/282.html#comments</comments>
		<pubDate>Wed, 27 Aug 2014 08:54:54 +0000</pubDate>
		<dc:creator><![CDATA[zhangc]]></dc:creator>
				<category><![CDATA[asp]]></category>
		<category><![CDATA[日期补零]]></category>

		<guid isPermaLink="false">http://zhoumo123.cn/?p=282</guid>
		<description><![CDATA[输出日期很常见，日期的格式根据情况也有多种，系统去掉了0，如何日期补零实现月份、天数两位数？如20140101 可参考下面方法： getY=year(date()) getM=month(date()) getD=day(date()) if len(getM) = 1 then getM = &#8220;0&#8221; &#38; getM end if if len(getD) = 1 then getD = &#8220;0&#8221; &#38; getD end if response.Write getY&#38;getM&#38;getD &#8216;输出格式 20140 ...  <a href="http://zhoumo123.cn/asp/282.html">  阅读全文 </a>]]></description>
				<content:encoded><![CDATA[<p>输出日期很常见，日期的格式根据情况也有多种，系统去掉了0，如何日期补零实现月份、天数两位数？如20140101 可参考下面方法：</p>
<p>getY=year(date())<br />
getM=month(date())<br />
getD=day(date())<br />
if len(getM) = 1 then getM = &#8220;0&#8221; &amp; getM end if<br />
if len(getD) = 1 then getD = &#8220;0&#8221; &amp; getD end if</p>
<p>response.Write getY&amp;getM&amp;getD &#8216;输出格式 20140101<br />
response.Write getY&amp;&#8221;-&#8220;&amp;getM&amp;&#8221;-&#8220;&amp;getD &#8221;输出格式 2014-01-01</p>
<p>实现补零后，可根据自己情况输出。</p>
]]></content:encoded>
			<wfw:commentRss>http://zhoumo123.cn/asp/282.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP操作XML文件的方法和实现</title>
		<link>http://zhoumo123.cn/asp/35.html</link>
		<comments>http://zhoumo123.cn/asp/35.html#comments</comments>
		<pubDate>Thu, 22 May 2014 02:31:26 +0000</pubDate>
		<dc:creator><![CDATA[zhangc]]></dc:creator>
				<category><![CDATA[asp]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://zhoumo123.cn/?p=35</guid>
		<description><![CDATA[ASP通过XMLDom在服务器端操作XML文件的主要方法和实现 对于小数据量，xml文件在检索更新上于ACCESS有很多优势。 我曾经测试过不用数据库，把网站的会员信息，商品数据信息，交易信息，网站定制信息全部存放在三个xml文件中，运行结果十分正常，感觉上比数据库快多了，不过没有作测试，不能确定。 下面说一下创建，查询，修改等对xml操作的主要方法 等能够熟练的运用xmldom对象来操作xml文件了，就可以享 受xmlhttp对象来实现asp下的许多功能了。 &#160; 作者：68design.net]]></description>
				<content:encoded><![CDATA[<p>ASP通过XMLDom在服务器端操作XML文件的主要方法和实现<br />
对于小数据量，xml文件在检索更新上于ACCESS有很多优势。<br />
我曾经测试过不用数据库，把网站的会员信息，商品数据信息，交易信息，网站定制信息全部存放在三个xml文件中，运行结果十分正常，感觉上比数据库快多了，不过没有作测试，不能确定。<br />
下面说一下创建，查询，修改等对xml操作的主要方法</p>
<pre class="brush: java; title: ; notranslate">
'创建DOM对象
set objDom=server.CreateObject(&quot;MicroSoft.XMLDom&quot;)
'取得xml数据
'方法1 取得xml文件的xml数据
objDom.load(&quot;c:\test.xml&quot;)
'方法2 取得xml数据串的数据
objDom.loadxml(&quot;&lt;people&gt;&lt;man name=&quot;sd&quot;/&gt;&lt;/people&gt;&quot;)
'创建一个节点对象
Set Newnode=objDom.CreateElement(&quot;people&quot;)
'给这个节点赴值
Newnode.Text=&quot;人&quot;
' 给这个节点添加属性
Set NewAttribute=objDom.CreateNode(&quot;attribute&quot;,&quot;name&quot;,&quot;&quot;)
NewAttribute.Text= &quot;张三&quot;
Newnode.SetAttributeNode NewAttribute
'给这个节点添加子节点
Set NewnodeChild=objDom.CreateElement(&quot;address&quot;)
Newnode.appendChild NewnodeChild
'保存这个节点对象
objDom.appendChild Newnode
objDom.save(&quot;c:\test.xml&quot;)
'查找一个节点对象
set objtofind=objdom.documentElement.SelectSingleNode(&quot;//people/man&quot;)
'取出这个节点对象的 节点名，节点值，某个属性值，和全部的xml
nodename=objtofind.nodename
nodevalue=objtofind.text
objtofind.GetAttributeNode(&quot;name&quot;).Nodevalue '属性名为name的属性值
'取出一个属性节点对象
set objattrtofind=objdom.documentElement.SelectSingleNode(&quot;//people/man&quot;). GetAttributeNode(&quot;name&quot;)
'取出这个节点的属性名，属性值
nodeattrname=objattrtofind.nodename
nodeattrvalue=objattrtofind.nodevalue
'删除一个节点对象
set objnode=objdom.documentElement.SelectSingleNode(&quot;//people/man&quot;) '要删除的节点
set objparentnode=objdom.documentElement.SelectSingleNode(&quot;//people&quot;) '要删除的节点的父节点
objparentnode.removeChild objnode
'取出一个节点的字节点集合
set objnodes=objdom.documentElement.SelectSingleNode(&quot;//people/man&quot;).ChildNodes
遍历这个集合

方法1
for each element in objnodes
response.write element.nodename 字节点名
response.write element.text 字节点值
next

方法2
domlength=objnodes.length
for i = 0 to domlength-1
response.write objnodes.childnodes(i).nodename 字节点名
response.write objnodes.childnodes(i).text 字节点值
next
'取出一个节点的属性集合
set objnodes=objdom.documentElement.SelectSingleNode(&quot;//people/man&quot;).GetAttributeNode(&quot;name&quot;).attributes
遍历这个集合
for each element in objnodes
response.write element.nodename 属性名
response.write element.nodevalue 属性值
next

</pre>
<p>等能够熟练的运用xmldom对象来操作xml文件了，就可以享<br />
受xmlhttp对象来实现asp下的许多功能了。</p>
<p>&nbsp;</p>
<p>作者：68design.net</p>
]]></content:encoded>
			<wfw:commentRss>http://zhoumo123.cn/asp/35.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
