关于XML读取的问题 - Web 开发 / ASP
VBScript code:
'************************************************************
'函数名:SetClassCache
'作 用:设置新闻类型缓存
'参 数:
'返回值:成功返回true 否则返回Flase
'************************************************************
Public Function SetClassCache()
on error resume next
Dim CacheName,RSObj,row,xmlroot
CacheName = "gq_classlist"
row = "gqclass"
xmlroot = "gqclasslist"
Dim RS:Set RS = Server.CreateObject("ADODB.RECORDSET")
RS.Open "SELECT ClassID,ClassCName,ClassDomain,ReITemplateID,ReLTemplateID,ReNTemplateID from GQ_Class WHERE ClassDelTF=0",conn,1,1
SetClassCache = GQ_Cache.SetCacheValue(CacheName,RS,row,xmlroot)
RS.Close:Set RS = Nothing
If Err.Number <> 0 Then
Err.Clear
SetClassCache = False
Else
SetClassCache = True
End If
End Function
'************************************************************
'函数名:SetCacheValue
'作 用:设置模板缓存
'参 数:
'返回值:成功返回true 否则返回Flase
'************************************************************
Public Function SetCacheValue(CacheName,RSObj,row,xmlroot)
on error resume next
If not IsObject(Application(CacheN
相关问答:
我有一个类似的xml的 string,想通过遍历怎么个xml 输出我想要的element的值
xml 为:
<Discover xmlns="urn:schemas-microsoft-com:xml-analysis">
<RequestType>DISCOVER_XML_ME ......
如何用ATL窗体应用程序中用System.Xml遍历一个Xml文件
你说的是托管代码?
。
vc可用msxml
http://msdn.microsoft.com/en-us/library/ms767594(VS.85).aspx
MSXML4
//引入msxml4.dll &nbs ......
为什么在xml解析时用big5编码会出现乱码
你 写xml文件头部时设定什么格式了,两方统一应该是不会出现乱码的
都设置成big5的,结果是解析不了,头都大了
End_rbody_65353733//-->
该回复于2010-05-12 0 ......
為什麼我生成的時候是big5編碼的xml,但我解析之後卻發現xml內容的編碼蠻成了utf-8的,這是為什麼
<?xml version= ......