在线等待!

tklyc 2003-04-28 02:01:54
请教各位大虾,怎么样把DOM读到DataSet对象中。
...全文
58 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
genny 2003-04-28
  • 打赏
  • 举报
回复
把dom读到dataset对象中,
你的意思是不是,把一个xml文档读到内存中,形成结果树,再把架构和数据都读到一个dataset对象中?看看自带帮助,会对你有帮助的。
这时
When a DataSet is synchronized with an XmlDataDocument, both objects are working with a single set of data. This means that if a change is made to the DataSet, the change will be reflected in the XmlDataDocument, and vice versa.
下面我抄了帮助里的例子

Dim xmlDoc As XmlDataDocument = New XmlDataDocument
Dim myDataSet As DataSet = xmlDoc.DataSet

' Add code here to create the schema of the DataSet to view the data.

xmlDoc.Load("XMLDocument.xml")

反之
Dim myDataSet As DataSet = New DataSet

' Add code here to populate the DataSet with schema and data.

Dim xmlDoc As XmlDataDocument = New XmlDataDocument(myDataSet)
Dim myDataSet As DataSet = New DataSet
' Add code here to populate the DataSet with schema and data.
Dim xmlDoc As XmlDataDocument = New XmlDataDocument(myDataSet)
Montaque 2003-04-28
  • 打赏
  • 举报
回复
dom读到dataset?
xml可以直接读的。
http://www.yesky.com/20010703/187724.shtml
zwztu 2003-04-28
  • 打赏
  • 举报
回复
关注

16,553

社区成员

发帖
与我相关
我的任务
社区描述
VB技术相关讨论,主要为经典vb,即VB6.0
社区管理员
  • VB.NET
  • 水哥阿乐
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧