C# ¶ÁÈ¡xmlÎļþÎÊÌâ ÔÚÏßµÈ - .NET¼¼Êõ / C#
<?xml version="1.0" encoding="utf-8" ?>
<Menu>
<Navigation text="Îļþ">
<Child text="н¨">
<Grandson>ÏîÄ¿</Grandson>
<Grandson>ÍøÕ¾</Grandson>
<Grandson text="Îļþ">
<Last>Îļþ1</Last>
<Last>Îļþ2</Last>
<Last>Îļþ3</Last>
</Grandson>
</Child>
<Child text="´ò¿ª">
<Grandson>ÏîÄ¿</Grandson>
<Grandson>Îļþ</Grandson>
</Child>
<Child text="Ìí¼Ó">
<Grandson>н¨ÏîÄ¿</Grandson>
<Grandson>н¨ÍøÕ¾</Grandson>
</Child>
</Navigation>
<Navigation text="±à¼">
<Child>¼ôÇÐ</Child>
<Child>¸´ÖÆ</Child>
<Child>Õ³Ìù</Child>
</Navigation>
<Navigation>ÊÓͼ</Navigation>
<Navigation>ÍøÕ¾</Navigation>
</Menu>
ÕâÊÇÎÒµÄxmlÎļþ£¬ÎÒÏë×ö³É¶à¼¶µ¼º½²Ëµ¥£¬ÎÒÏëÏÈͨ¹ý³ÌÐòÕÒµ½µÚÒ»²ã²Ëµ¥£¬ÔÙÑ»·ÕÒµ½ÊÇ·ñÓÐ×Ӳ˵¥£¬±¾È˶Ôxml²»ÊǺÜÁ˽⣬´ó¼Ò°ï°ïÎÒ°É£¬Ð»Ð»£¬ÔÚÏߵȣ¡£¡£¡
C# code:
XmlDocument xml = new XmlDocument();
xml.Load("XmlÎļþµØÖ·");
XmlN
Ïà¹ØÎÊ´ð£º
дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
DataSetµ¼³öxml Åú´¦Àí(Ñ»·)µÃÔõô´¦Àí
XMLÎļþ
<A>
<B>
<C>
</C>
&nb ......
[align=center][/align]CÓïÑÔÖÐÈçºÎÅжÏÒ»¸ödoubleÐ͵ÄÊý×飨Èçdouble S[20]£»£©ÊÇÒ»¸ö¿ÕÊý×飬¼´Êý×éÖÐûÓзÅÈκÎÖµ¡£
û°ì·¨¡£
"ÈκÎÖµ" µÄ¶¨Òå?
¾ÍÊÇÊý×éÊǿյģ¬Ã»ÓÐΪËü¸³Öµ
¿ÉÒÔ¿¼Â ......