如何在.net中使用xml [英] how to use xml in .net

查看:49
本文介绍了如何在.net中使用xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在一个项目中,我必须从xml文件中获取GPS坐标,并且必须使用c#中的坐标.我必须使用的坐标不会保存在本地计算机中,但是我必须从Trackpeers的服务器中获取坐标..我不知道该怎么做..plz帮助我....

............我的XML代码是:-

i am working on a project where i have to fetch GPS coordinates from the xml file and have to use the coordinates in c#. The coordinates i have to use is not saved in my local computer but i have to fetch the coordinates from the server of trackpeers .. I don''t know how to do it..plz help me....

............My XML code is :-

<pre lang="HTML">
<Account account="nitco" >
<timezone="GMT+05:30">
<Description>Nitco Roadways</Description>
<Device id="2165">
<Description>HR-30-Q-2165</Description>
<EventData device="2165">
<Timestamp epoch="1351162020">2012/10/25 16:17:00 GMT+05:30</Timestamp>
<StatusCode code="0xF020">Location</StatusCode>
<GPSPoint age="0">19.24196,73.01601</GPSPoint>
<Speed units="km/h">0.0</Speed>
<Heading degrees="0.0">N</Heading>
<Altitude units="meters">320</Altitude>
<Odometer units="Km">61561.1</Odometer>
<Geozone index="0"/>
<Address>Thane, Maharashtra, India</Address>
<City/><PostalCode/>
<DigitalInputMask>0x0000000000000000</DigitalInputMask>
<EngineRPM>0</EngineRPM>
<EngineHours>0.0</EngineHours>
<VehicleBatteryVolts>0.0</VehicleBatteryVolts>
<EngineCoolantLevel units="percent">0.0</EngineCoolantLevel><EngineCoolantTemperature units="C"/>
<EngineFuelUsed units="liter">175.0</EngineFuelUsed>
</EventData>
</Device>
</Account>

推荐答案

查找,请按照以下链接进行查询:

http://support.microsoft.com/kb/307548 [ http://www.java2s.com/Code/CSharp/XML/ReadXMLnodeusingtheXMLpath.htm [ ^ ]
http://csharp.net-informations.com/xml/how-to-read- xml.htm [^ ]


谢谢,
Ambesha
Freind please follow the following links for your query:

http://support.microsoft.com/kb/307548[^]
http://www.java2s.com/Code/CSharp/XML/ReadXMLnodeusingtheXMLpath.htm[^]
http://csharp.net-informations.com/xml/how-to-read-xml.htm[^]


Thanks,
Ambesha


这篇关于如何在.net中使用xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆