| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 812 人关注过本帖
标题:XML的问题,请高手解答
取消只看楼主 加入收藏
kristytian
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2008-7-10
收藏
 问题点数:0 回复次数:2 
XML的问题,请高手解答
<PointRecord ID="00000057" TimeStamp="2010-07-05T09:39:59">
            <Name>Yzc</Name>
            <Code/>
            <Method>GpsRTKControlPoint</Method>
            <SurveyMethod>Fix</SurveyMethod>
            <Classification>Normal</Classification>
            <Deleted>false</Deleted>

            <ECEFDeltas>
                <DeltaX>1838.5519045149</DeltaX>
                <DeltaY>482.8904503677</DeltaY>
                <DeltaZ>-333.16447392013</DeltaZ>
            </ECEFDeltas>
            <ReferenceRecordID>0000004d</ReferenceRecordID>
            <RTK_Base>A1</RTK_Base>
            <AntennaID>00000056</AntennaID>

            <ComputedGrid>
                <North>33935.771457227</North>
                <East>74407.768982798</East>
                <Elevation>567.1</Elevation>
            </ComputedGrid>
            <Precision>
                <Horizontal>0.00616929062489</Horizontal>
                <Vertical>0.01237836094254</Vertical>
            </Precision>
            <QualityControl1>
                <NumberOfSatellites>12</NumberOfSatellites>
                <RelativeDOPs>true</RelativeDOPs>
                <PDOP>1.8156530857086</PDOP>
                <HDOP>0.8749361038208</HDOP>
                <VDOP>1.6248326301575</VDOP>
                <RMS>16.82648435235</RMS>
                <NumberOfPositionsUsed>32</NumberOfPositionsUsed>
                <HorizontalStandardDeviation/>
                <VerticalStandardDeviation/>
                <StartTime>
                    <GPSWeek>1591</GPSWeek>
                    <Seconds>92384.2</Seconds>
                </StartTime>
                <EndTime>
                    <GPSWeek>1591</GPSWeek>
                    <Seconds>92415.2</Seconds>
                </EndTime>
                <MonitorStatus>NotMonitored</MonitorStatus>
            </QualityControl1>
        </PointRecord>
请教如何提取PointRecord中的需要的字段在dataGridView表中显示,比如说我需要显示的是Name+North+East+Elevation+……
简单的代码如下:
            DataSet myDataSet = new DataSet();
            myDataSet.ReadXml("20100705.xml");
            dataGridView1.DataSource = myDataSet.Tables["PointRecord"];
请高手帮忙,谢谢
搜索更多相关主题的帖子: false 
2011-10-03 11:22
kristytian
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2008-7-10
收藏
得分:0 
非常感谢,看了下,只有一个PointRecord根节点是没有问题的,但是如果同一个XML文件中有很多个PointRecord节点的时候,就有问题了
2011-10-03 16:02
kristytian
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2008-7-10
收藏
得分:0 
非常感谢yhlvht的回复,祝大家国庆愉快
2011-10-03 16:03
快速回复:XML的问题,请高手解答
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017685 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved