C# DataSetµ¼³öxml Åú´¦Àí(Ñ»·)µÃÔõô´¦Àí
DataSetµ¼³öxml Åú´¦Àí(Ñ»·)µÃÔõô´¦Àí
XMLÎļþ
<A>
<B>
<C>
</C>
</B>
</A>
×Ô¶¯±£´æµ½C½á½Ú °´ÐÐÄÚÈÝÒýÈë
Ò»ÐÐдÐÐ,ÍüÁËÅú´¦ÀíÒªÔõôŪÁË ÄĸöºÃÐÖÄÜÌù¶Î´úÂë³öÀ´»òÖ¸½ÌÒ»ÏÂ
²Î¿¼
DataSetµÄÖÐÓиö
writeXml()º¯Êý
C# code:
private void DataGridViewBind()
{
try
{
DataTable table = new DataTable("item");
table.Columns.AddRange(new DataColumn[]
{
new DataColumn("id"),
new DataColumn("DomainName1"),
new DataColumn("DomainDescribe1"),
new DataColumn("DomainRegDate1"),
new DataColumn("DomainDeadDate1")
});
table.Columns["id"].DataType = typeof(Int32);
table.ReadXml(FileName); //¶ÁÈ¡xmlÎļþ
set.Tables.Add(table);
dataGridView1.DataSource = set.Tables[0]; //ÉèÖÃdataGridViewµÄÊý¾ÝÔ´
}
catch (Inde
Ïà¹ØÎÊ´ð£º
ÎÒÏë°Ñ´¿Õæip¿âµ¼³öµ½sqlserver£¬ÎÒÓÃϱߵĽéÉÜ·½·¨£¬£¨ËüÖ÷ÒªÊǵ¥¸öIP²éѯµÄ£©
http://www.cnblogs.com/njnudt/archive/2007/04/08/704524.html
¸ÄÁËÒ»ÏÂÄܹ»µÃµ½ËùÓеĹú¼ÒºÍµØÇøÐÅÏ¢£¬µ«ÊDz»Äܵõ½ipµØÖ·µ ......
SqlConnection conn = new SqlConnection("server = (local)\\sqlexpress;integrated security = SSPI;database = Northwind");
conn.Open();
Á¬½Ó²»ÉÏ£ ......
javaÌáÈ¡Êý¾ÝÓÐÄü¸ÖÖ·½·¨£¿
˵µÄ²»Ì«Ã÷°× datatable ûÌý˵¹ý¡£
C#ÖÐÄãÓõÄÊǿؼþ¡£ÔÚjavaÖÐÓ¦¸ÃÓÐÕâÑùµÄ¿ªÔ´³ÌÐò¡£²»¹ý´ÓÎÒ¿ª·¢À´½²£¬ÎÒ¶¼ÊÇ×Ô¼ºÐ´µÄtable¡£
javaÊÇָʲô£¿
javaSE --ÓÐÀàËÆdatat ......
ÔÚ¿´Ò»¶ÎAS´úÂëʱÓöµ½¼¸¸öÒÉÎÊ¡£
ÔÚFlashÖеÄXML¶ÔÏóòËÆÓÐÒ»¸öchildÊôÐÔ
ÇëÎÊ
1.childÊôÐÔºÍchildNodesÓÐʲôÇø±ð£¿
2.ASÖÐÓÐintÊý¾ÝÀàÐÍÂð£¿AS3.0ÖÐÓÐÂð£¿
´úÂëÖÐÓõ½ÁË´ËÀàÐÍ¡£
3._name¡¢_pare ......
·µ»ØÈçÏÂxml×Ö·û´®£º
<?xml version="1.0" encoding="utf-8" ?>
<DeliverMsg xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www ......