Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

½«XMLÊý¾ÝÌî³äµ½TreeViewÖÐ


Îĵµ¼°´úÂëÏÂÔØ£ºhttp://www.dingos.cn/index.php?topic=1899.0
½éÉÜ
µ±²Ëµ¥ÏîÊǾ­³£¸Ä±äʱ£¬´ÓXMLÎĵµÖд´½¨TreeView²Åµ±ÊǷdz£ÓÐÓõġ£ÀýÈ磬ʹÓÃXML×÷ΪÊý¾Ý¿â´æ´¢¼Ç¼¡£
ÕâÀïÓиö¼òµ¥Ê¾Àý¡£ÒÔ·À»ìÏýÕâ¸öÀý×ӱȽϼòµ¥¡£
±³¾°
¶ÔXML¡¢TreeView¿Ø¼þµÄÓ¦Óã¬ÔÚVisual StudioÖÐÓÐÖúÓÚÀí½âÕâЩ²½Öè¡£
ʹÓôúÂë
×¢Ò⣺Õâ¸ö½â¾ö·½°¸£¨xml2treeviewmenuSolution£©ÊÇVS2010´´½¨¡£
Ìí¼ÓÒ»¸öXMLÎļþµ½ÏîÄ¿Öв¢ÃüÃûΪ“menu.xml”¡£¸ù¾Ý²Ëµ¥Ïî±à¼­XMLÎļþ¡£
view plaincopy to clipboardprint?
<?xml version="1.0" encoding="utf-8" ?>  
<root>  
<folder title='folder 1a' >  
<record title='record 1a1' />  
<record title='record 1a2' />  
<folder title='folder 1b'>  
<record title='record 1b1' />  
</folder>  
</folder>  
<folder title='folder 2a' >  
<record title='record 2a1' />  
</folder>  
<folder title='folder 3a' >  
<record title='record 3a1' />  
<record title='record 3a2' />  
</folder>  
</root>  
´ÓVisual Studio¹¤¾ßÏäÖн«TreeView¿Ø¼þÍÏÈëWindows´°ÌåÖС£ÔÚÕâ¸öÀý×Ó£¬ÃüÃû¿Ø¼þΪ“treeViewMenu”¡£Ê¹ÓÃusingÌí¼Ó¶ÔXMLÀàµÄÒýÓá£
view plaincopy to clipboardprint?
using System.Xml;  
using System.Xml.XPath;  
´´½¨Ò»¸öXMLDocument¶ÔÏóÓÃÓÚ±£´æÎļþ¡£
view plaincopy to clipboardprint?
public partial class Form1 : Form{  
    private XmlDocument docXML = new XmlDocument();  
µ±´°Ìå¼ÓÔØÊ±£¬´ÓXMLÎļþÖмÓÔØÌî³äTreeView¿Ø¼þµÄXMLÎĵµ¡£ 
view plaincopy to clipboardprint?
private void Form1_Load(object sender,&


Ïà¹ØÎĵµ£º

Example Code of Using XML Parser in Symbian OS

antonypr | 14 April, 2007 00:05
A couple of weeks ago, I had a plan to write an article and example code of using XML parser in Symbian OS. It seems that another Forum Nokia Champion, Paul Todd had the same idea. He posted a nice article about XML parser in Symbian OS 9.x to Forum Nokia Blogs. It's ......

XMLѧϰ±Ê¼Ç£¨¶þ£©——XMLÔªËØÓëÊôÐÔ


XML ÔªËØ
ÔªËØÃüÃû
XMLÔªËØ±ØÐë×ñÊØÒÔϵÄÃüÃû¹æÔò£º
Ãû×ֿɰüº¬×Öĸ¡¢Êý×ÖÒÔ¼°ÆäËûµÄ×Ö·û
Ãû×Ö²»ÄÜÒÔÊý×Ö»òÕß±êµã·ûºÅ¿ªÊ¼
Ãû×Ö²»ÄÜÒÔ×Ö·û“xml”£¨»òÕßXML¡¢Xml£©¿ªÊ¼
Ãû×Ö²»Äܰüº¬¿Õ¸ñ
µ±Äú“·¢Ã÷´´Ôì”ÔªËØÃû³ÆÊ±£¬ÇëÁôÒâ²¢×ñÑ­ÏÂÃæµÄ¼òµ¥µÄ¹æÔò£º
Äú¿ÉÒÔʹÓóý±£Áô×ÖÍâµÄÈκÎÃû³Æ£ ......

ÅжÏÊÇ·ñXMLÎĵµ

xhtmlµÄê¼»¨Ò»ÏÖ´øÀ´²»ÉÙÎÊÌ⣬ËüµÄÄ¿µÄÊÇÈÃhtml±íÏֵøüÏñxml£¬ËùÒԲŽÐxhtml¡£µ«Êdzöʦδ½ÝÉíÏÈËÀ£¬ÎÒÃÇÌÖÂÛÒ»ÏÂÈçºÎÅж¨ÎĵµÊÇXML°É¡£
Ó¡ÏóÖÐjQuery¶Ô´Ë·½·¨Öظ´ÊµÏÖÁËÐí¶à´Î£¬Ó¦¸Ã±È½ÏȨÍþ£¬Ò²ËµÃ÷ÕâÅж¨±È½ÏÄѸ㡣¿´jQuery1.42µÄʵÏÖ£º
var isXML = function(elem){
// documentElement is verifi ......

.netÖÐXMLÎļþ×÷ΪÊý¾ÝÔ´µÄ²Ù×÷Àà

²»½âÊÍÁË£¬×Ô¼º¿´´úÂë°É.......................
using System;
using System.Text;
using System.Data;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Web;
using System.Web.UI;
using System.Xml;
namespace Gogofly.CommonOperation
{
 /// <summary>
 /// ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ