2008年12月8日星期一

asp+xml编程,程序代码,代码开源

淘一宝,手机数码


username=session("username")
mess = request("mess")
posttime=mid(date(),6)&" "&time()
mtowho=request("mtowho")
mfont=request("mfont")
mfcolor=request("mfcolor")
elist=request("elist")
if username<>"" then
strSourceFile = Server.MapPath("data.xml")
'获取XML文件的路径这里根据你的虚拟目录不同而不同
Set objXML = Server.CreateObject("Microsoft.XMLDOM")
'创建XML对像
objXML.load(strSourceFile)
'把XML文件读入内存中
Set objRootlist = objXML.documentElement
'选取节点
brstr=chr(13)&chr(10)&chr(9)
'为了插入XML文件中的节点换行空格排列整齐(当然你也可以不用这样只是为了XML数据好看而以)
XMLnode=brstr&""&brstr & _
""&brstr & _
""&username&""&brstr & _
""&mess&""&brstr & _
""&mtowho&""&brstr & _
""&mfont&""&brstr & _
""&mfcolor&""&brstr & _
""&elist&""&brstr & _
"
"&chr(13)
'根据得到的数据建立XML片段
set objXML2=Server.CreateObject("Microsoft.XMLDOM")
'建立一个新XML对像
objXML2.loadXML(XMLnode)
'把XML版片段读入内存中
set rootNewNode=objXML2.documentElement
'获得objXML2的根节点
objRootlist.appendChild(rootNewNode)
'把XML片段插入到List.xml中
objXML.save(strSourceFile)
'存储lsit.xml文件(因为不存储List.xml只在内存中更新了)
set objXML=nothing
set objXML2=nothing
end if
%>

淘一宝,手机数码

1 条评论:

nini 说...

还不做就是有的时候弄点css兼容啊什么的高上去会更好点

wholesale retail company from china

achinaseller.com is a professional wholesale retail company, having our own factory with 5 years of wholesale retail experience. Achinaseller.com is also cooperating closely with many factories, so the price that we offer to the consumer is directly from the Chinese Factory. Without leaving your home, you could order your own products at achinaseller.com at the lowest price.
We service over 100,000 registered buyers, delivering to virtually every country in the world. Our warehouse and office are staffed by a young team of Chinese and Western staff.
Happy AchinaSeller buyers include frequent wholesale importers, famous ecommerce websites, eBay powersellers, retail shops and startup home import businesses. On a daily basis, we serve corporate buyers, drop-ship experts, home business Moms, and small bussiness wholesaler