Çë½ÌÒ»¸öXMLµÄÎÊÌâ - .NET¼¼Êõ / ASP.NET
XML code:
<?xml version="1.0" encoding="utf-8" ?>
<rootNode name="Ê×Ò³" url="a.aspx">
<rootNode name="ÐÂÎÅ" url="b.aspx">
<rootNode name="¹úÄÚÐÂÎÅ" url="d.aspx"></rootNode>
<rootNode name="¹úÍâÐÂÎÅ" url="e.aspx"></rootNode>
</rootNode>
<rootNode name="²úÆ·" url="c.aspx" ></rootNode>
</rootNode>
XMLÎļþÈçÉÏËùʾ£¬ÈçºÎ¸ù¾ÝurlÊôÐÔ»ñÈ¡½Úµã£¿
±ÈÈç url="d.aspx" ÄÇ»ñÈ¡µÄ¾ÍÊÇ<rootNode name="¹úÄÚÐÂÎÅ" url="d.aspx"></rootNode>Õâ¸ö½Úµã
Õâ¸ö×îºÃÔÚrootNodeÀïÃæÔÙ¼ÓÒ»¸öÊôÐÔ£¬×¨Ãűê¼ÇÒ³ÃæÃû³Æ ±ÈÈç UrlId="d" ±íʾurlΪd.aspxµÄrootNode£¬ÕâÑù¾Í¿ÉÒÔ¸ù¾ÝUrlId²éÕÒÁË
Ïà¹ØÎÊ´ð£º
<?xml version="1.0" encoding="utf-8" ?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical&q ......
Private Sub Command1_Click()
Dim MyString() As String
Open "a.xml" For Binary As #1 ' ´ò¿ª¸Õ´´½¨µÄÎļþ¡£
ReDim MyString(LOF(1) - 1)
Put #1, , MyRecord ' ¶ÁÈëËùÓÐ×Ö·ûµ½±äÁ¿ÖÐ ......
ΪʲôÎҵijÌÐòµ÷ÓÃXMLÅäÖÃÎļþÖеİ¢À²®ÎÄÏÔʾ²»³öÀ´£¿ÆäËûµÄÓïÖÖ¶¼¿ÉÒÔ£¬ÈçÖÐÎÄ£¬Ó¢ÎÄ£¬µÂÎĶ¼¿É¡£
ÎÒ½«XMLµÄ±àÂë¸ÄΪutf-8ºÍunicodeµÄµ½µÃ½á¹û¶¼Ò»Ñù.
°¢À²®ÎĵÄ×Ö¿âÄãÓÐô£¿
ÓÐ,ÎÒµÄEXEÊÇ·ÅÔÚpc»úÉÏÖ´Ðе ......
½«Ò»¸ö²éѯÓï¾ä¸³¸øÒ»¸ö±äÁ¿£¬ÈçÏ£º
DECLARE @STR NVARCHAR(MAX)
SET @STR='SELECT * from SALE_PROD'
ÔõôÑù²ÅÄÜÖ´ÐÐËüÄØ£¿
Çë¸ßÊÖ£¬ÈÊÐÖ£¬ÏÀ½ã°ï°ïæ°¡
¶àл£¬¿ÉÒÔÀ²£¬¸ßÊÖ°¡
Ö±½ÓÖ´ÐоÍÐÐÁË
exec ......