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

xmlת»»Îªdataset

        /// <summary>
        /// ¶ÁÈ¡Êý¾Ý¼¯²¢¼ÓÈ뻺´æ
        /// sea 2009-12-11
        /// </summary>
        /// <returns>½á¹û¼¯</returns>
        private DataSet BindData()
        {
            if (Cache["ds"] == null)
            {
                XmlDocument xdoc = new XmlDocument();
                xdoc.LoadXml(Service.TicketCancel.GetTicketCancel());
                DataSet ds = CreatDataSet();
                XmlNodeList xlist = xdoc.SelectSingleNode("/JIT-Cancel-Response").ChildNodes;
                foreach (XmlNode xnode in xlist)
                {
                    DataRow dr = ds.Tables[0].NewRow();
                    dr["id"] = xnode.Attributes["id"].Value;
                    dr["AirlineCompanyC"] = xnode.Attributes["AirlineCompanyC"].Value;
                


Ïà¹ØÎĵµ£º

ÓÃSAXReader½âÎöxmlÎĵµ

     ʹÓÃSAXReaderÐèÒªµ¼Èëdom4j-full.jar°ü¡£
     dom4jÊÇÒ»¸öJavaµÄXML API£¬ÀàËÆÓÚjdom£¬ÓÃÀ´¶ÁдXMLÎļþµÄ¡£dom4jÊÇÒ»¸ö·Ç³£·Ç³£ÓÅÐãµÄJava XML API£¬¾ßÓÐÐÔÄÜÓÅÒì¡¢¹¦ÄÜÇ¿´óºÍ¼«¶ËÒ×ÓÃʹÓõÄÌص㣬ͬʱËüÒ²ÊÇÒ»¸ö¿ª·ÅÔ´´úÂëµÄÈí¼þ£¬¿ÉÒÔÔÚSourceForgeÉÏÕÒµ½Ëü¡£
 &n ......

VC½âÎöXML ʹÓÃCMarkupÀà½âÎöXML

(Ò») ÏȽ²Ò»ÏÂXMLÖеÄÎïÊâ×Ö·û£¬ÊÖ¶¯ÌîдʱעÒâһϡ£
×Ö·û                   ×Ö·ûʵÌå
&                     ......

InfoPath¿ª·¢£º»ñÈ¡XMLÎļþÖеÄÊý¾Ý

±¾ÎÄʾÀýÔ´´úÂë»òËزÄÏÂÔØ
¡¡¡¡±¾½ÚµÄÄÚÈÝ£º
¡¡¡¡ÈçºÎÔÚInfoPathÖÐʹÓÃÊý¾ÝÁ¬½ÓÀ´´ÓXMLÎļþÖлñÈ¡Êý¾Ý
¡¡¡¡ÈçºÎͨ¹ý´úÂëÀ´ÐÞ¸ÄÊý¾ÝÁ¬½ÓÖеÄXMLÎļþ·¾¶
¡¡¡¡´ò¿ªVisual Studio 2008£¬ÒÔ“InfoPath 2007±íµ¥Ä£°å”ΪÏîÄ¿Ä£°åн¨Ò»¸öÏîÄ¿¡£
¡¡¡¡ÏîÄ¿´´½¨Íêºó£¬¾Í»á¿´µ½Ò»¸ö¿Õ¿ÕÈçÒ²µÄmainifest.xsfÎļþ£¬Õâ ......

(4).¶ÁÈ¡XMLÎļþ

//¶ÁÈ¡XMLÎļþ
//1¡¢LoadfromFile×°ÈëXMLÎļþ
//2¡¢Ö¸¶¨Â·¾¶£¬¼¤»î¶ÁÈ¡
//3¡¢´ÓÄÚ´æÁ÷¶ÁÈ¡
//4¡¢´ÓÍøÂçÉÏÖ±½Ó»ñÈ¡
//1¡¢LoadfromFile×°ÈëXMLÎļþ
procedure TForm1.Button1Click(Sender: TObject);
begin
XMLDocument1.LoadfromFile('c:\temp\test.xml');
// XMLDocument1.Active := True;
Memo1.Lines := X ......

»ùÓÚXMLµÄÈý²ãC/SÄ£ÐÍ

[ÕªÒª]¿ÉÀ©Õ¹±êÖ¾ÓïÑÔ£¨¼ò³ÆXML£©ÔÚʵÏÖÐÅÏ¢±ê×¼»¯¡¢ÐÅÏ¢µÄ½»Á÷Óë¹²ÏíÉÏÓÐÆä¶ÀÌصļ¼ÊõÓÅÊÆ£¬Òò´ËËüÊܵ½Á˹㷺µÄÖØÊÓ¡£È«ÎÄÊ×ÏÈÌá³öÁË»ùÓÚXMLµÄÈý²ãClient/ServerÄ£ÐÍ£»È»ºó¶ÔÆä´ÓÊý¾Ý»ñÈ¡¡¢´«ÊäÖÁÏÔʾÒÔ¼°Íⲿ´¦ÀíµÄÓ¦ÓýøÐзÖÎö£»½Ó×ÅÒÔͼÊé×ÊÁϹÜÀíϵͳΪÀý£¬ËµÃ÷ÁËÆä¾ßÌåµÄʵÏÖ£»×îºó¶Ô»ùÓÚXMLµÄÈý²ãC/SÄ£ÐÍÔÚÐÅÏ¢±ê×¼» ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ