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

DataTable.Select½øÐÐXMLÊý¾ÝµÄ²éѯ

×î½üÔÚ²©¿ÍÔ°´úÂëµÄÖع¹ÖÐ, ÎÒ·¢¾õÓÃDataTable.Select½øÐÐXMLÊý¾ÝµÄ²éѯҲÊÇͦ·½±ãµÄ¡£
±ÈÈçÎÒÃǸù¾ÝUrlÖвÎÊýÖµ²éѯXMLÊý¾ÝÖÐÏàÓ¦½ÚµãµÄÊý¾Ý¡£
¼ÙÈçÎÒÃÇÓÐÕâÑùµÄXmlÊý¾ÝÎļþCatalog.xml:
<Navigation>
      <Catalog title="·Ç¼¼ÊõÇø" url="default.aspx?cate=2" rss="MainFeed.aspx?cate=2" visible="true"  cate="2"/>
      <Catalog title="תÔØÇø" url="default.aspx?cate=7" rss="MainFeed.aspx?cate=7"  visible="true"  cate="7"/>
</Navigation>ͨ¹ýDataTable.Select²éѯXmlÊý¾ÝµÄ·½·¨ÊÇ:
DataSet myds=new DataSet();
myds.ReadXml(Server.MapPath("Catalog.xml"));
if(Request.QueryString["cate"]!=null)
          {
                querystr="cate="+Request.QueryString["cate"];
          }
                      
 DataRow[] row=myds.Tables[0].Select(querystr);
 if(row.Length>0)
          {
                url=row[0]["url"].ToString();
          }
           
Ò»¿ªÊ¼ÎÒÓÃÉÏÃæµÄ·½·¨²éѯÄܵÃÕýÈ·µÄ½á¹û£¬µ«µ±Catalog.xmlij¸ö½ÚµãµÄcate>10ʱ£¬±ÈÈçcate=10, ͨ¹ýmyds.Tables[0].Select("cate=10")¾Í²éѯ²»µ½cate=10µÄ½Úµã¡£Ò»¿ªÊ¼°Ù˼²»µÃÆä½â, ÒòΪÎÒÈÏΪcateÔÚmydsÖÐÊDZ»×÷ΪintÀàÐÍ´¦ÀíµÄ¡£ºóÀ´£¬ÎÒÏëµ½ÊDz»Êǵ±cate±ä³ÉÁ½Î»Êýʱ, DataSet°Ñcate×÷Ϊ×Ö·û´®´¦Àí?ÎÒ½«´úÂë¸Ä³É:
    querystr="cate='"+Request.QueryString["cate"]+"'";
ÎÊÌâ¾Í½â¾öÁË¡£
ÎÄÕÂת×Ô£ºhttp://www.webasp.net/article/28/27497.htm
ÕâÖÖ·½·¨ ËäÈ»·½±ã µ«ÊÇËû¶ÔXML½á¹¹ÒªÇóÐÔ¸ß ²»ÊÊÓ¦ËùÓеÄXML²éѯ


Ïà¹ØÎĵµ£º

javaʵÏÖ¶ÁÈ¡XMLÎļþÊý¾Ý²åÈëµ½Êý¾Ý¿âÖÐ

package com.flxx.docUrl;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.List;
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.input.SAXBuilder;
import org.jdom.output.Format;
import org.jd ......

SQl 2005 For XMl ¼òµ¥²éѯ(Raw£¬Auto£¬Pathģʽ)(2)

ÎÄÕµ¼º½ SQL Server 2005 ѧϰ±Ê¼ÇϵÁÐÎÄÕµ¼º½
     ÔÚSQl 2005 For XMl ¼òµ¥²éѯ(Raw£¬Auto£¬Pathģʽ)(1) ÀïÎÒÃÇ˵Á˹ØÓÚPath£¬RawºÍAutoģʽµÄÓ÷¨£¬ÆäʵÀïÃæ²»½ö½ö ÊÇÕâЩ¼òµ¥µÄ²Ù×÷£¬»¹ÓÐһЩÆäËüµÄÌØÐÔ£¬±ÈÈç˵Type»òOpenXml·½·¨£¬sp_xml_preparedocument´æ´¢¹ý³Ì µÈÕâЩÔö¼ÓµÄ¶«¶«£¬ÎÒÃÇÀ´Ò» ......

D Busѧϰ£¨¾Å£©£ºÀûÓÃXML¶¨ÒåD BusÖ®SingalÊÕ·¢Àý×Ó


¡¡¡¡ÔÚÇ°ÃæÎÒÃÇѧϰÁËʹÓÃGlibµÄ¸ß³ÌÀ¦°ó·½Ê½µÄmethodµÄÊÕ·¢£¬ÏÖÔÚѧϰsingalµÄÊÕ·¢£¬xmlÀý×ÓÈçÏÂ
<?xml version="1.0" encoding="UTF-8" ?>
<node name="/com/wei/MyObject">
  <interface name="com.wei.MyObject.Sample">
    < ......

wxwidgets ÓÃxmlÀ´ÃèÊö½çÃ棬ÔÚ³ÌÐòÀï»ñÈ¡ ±äÁ¿ºÍʼþ

Èç¹û¶Ô½çÃæÃÀ¹Û³ÌÐò±È½Ï¸ß£¬ÊÖд´úÂëÊDz»¿É±ÜÃâµÄ¡£
µ«Èç¹û×öµÄÊÇһЩÏñÖ»ÊÇΪÁËÏÔʾ¡¢¿ØÖÆÖ®ÀàµÄ³ÌÐò£¬¿ÉÄܸü¿ìµÄ°Ñ³ÌÐòµ·¹Ä³öÀ´¾ÍºÃÁË¡£
wxwidgets
ÓÐÕâÑùµÄÒ»¸ö¹¦ÄÜ£¬¾ÍÊÇÄÜÓÃxmlд³É½çÃæ¾ÍÄÜÏÔʾ
±à¼­xrcµÄ¹¤¾ßÊÇwxformbuilder,¿ªÔ´Ãâ·ÑµÄ£¬Ò²×ã¹»ÓÃÁË£¬ÎÒÒ»¿ªÊ¼Ã»ÕÒµ½Ôõô
Éú³Éxrc,ºóÀ´Ä³´ÎżȻ¿´µ½ÁËÏÂÃæ....Ô­À ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ