请问如何取得xml中结点的值。 ( 积分: 20 )

  • 主题发起人 无情剑客xx
  • 开始时间

无情剑客xx

Unregistered / Unconfirmed
GUEST, unregistred user!
xml文件如下:
<?xml version=&quot;1.0&quot;
encoding=&quot;gb2312&quot;?>
<oocmanifest1>
<Records>
<id>1</id>
<major>法学 </major>
<level>本科 </level>
<coursename>国际私法 </coursename>
<time>55</time>
<type>流媒体三分屏课件 </type>
<content_intro>null</content_intro>
<teacher_intro>齐湘泉 </teacher_intro>
<size>3300</size>
<company>中央电大 </company>
<price>null</price>
</Records>
</oocmanifest1>
现在我想取得id结点的值应该怎么取阿,先谢过各位大侠了。
 
xml文件如下:
<?xml version=&quot;1.0&quot;
encoding=&quot;gb2312&quot;?>
<oocmanifest1>
<Records>
<id>1</id>
<major>法学 </major>
<level>本科 </level>
<coursename>国际私法 </coursename>
<time>55</time>
<type>流媒体三分屏课件 </type>
<content_intro>null</content_intro>
<teacher_intro>齐湘泉 </teacher_intro>
<size>3300</size>
<company>中央电大 </company>
<price>null</price>
</Records>
</oocmanifest1>
现在我想取得id结点的值应该怎么取阿,先谢过各位大侠了。
 
看看我的笔记,我的笔记里面有读写xml的例子
 
编写一个递归查询
 
问题太基本了,不应该拿到这里,TXMLDocument、IXMLNode的属性、方法读读嘛!
 
顶部