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

XMLÌØÊâ×Ö·û


һЩ×Ö·ûÔÚ URL »ò XML ÎĵµÖÐʹÓÃʱÓÐÌØÊâµÄº¬Ò壬Òò´Ë±ØÐëÕë¶ÔÕâЩº¬Òå¶Ô×Ö·û×öÊʵ±±àÂëÒÔʹÆäÉúЧ¡£
URL ÖеÄÌØÊâ×Ö·û
ÔÚ URL ÉÏÖ´ÐеIJéѯÖУ¬ÌØÊâ×Ö·û±»Ö¸¶¨Îª %xx£¬ÆäÖÐ xx ÊÇ×Ö·ûµÄÊ®Áù½øÖÆÖµ¡£Ï±íÁгöÁËÕâЩÌØÊâ×Ö·û²¢ÃèÊöÁËËüÃǵĺ¬Òå¡£Óйظü¶àÐÅÏ¢£¬Çë²Î¼û http://www.faqs.org/rfcs/rfc1738.html ÖÐµÄ RFC1738 ¹æ·¶¡£
ÌØÊâ×Ö·û
ÌØÊ⺬Òå
Ê®Áù½øÖÆÖµ
+
±íʾ¿Õ¸ñ£¨ÔÚ URL Öв»ÄÜʹÓÿոñ£©¡£
%2B
/
·Ö¸ôĿ¼ºÍ×ÓĿ¼¡£
%2F
·Ö¸ôʵ¼ÊµÄ URL ºÍ²ÎÊý¡£
%3F
%
Ö¸¶¨ÌØÊâ×Ö·û¡£
%25
#
±íʾÊéÇ©¡£
%23
&
URL ÖÐÖ¸¶¨µÄ²ÎÊý¼äµÄ·Ö¸ô·û¡£
%26
ÀýÈ磬¿¼²ìÏÂÃæµÄ²éѯ£º
SELECT *
from Employees
WHERE EmployeeID=
ÒòΪ ×Ö·ûÔÚ URL ÖÐÓÐÌØÊ⺬Ò壨·Ö¸ô URL ºÍ´«µÝµÄ²ÎÊý£©£¬ËùÒÔÔÚ URL ÖÐÖ¸¶¨¸Ã²éѯʱ£¬¸Ã×Ö·û±»±àÂëΪ %3F¡£
ÏÂÁÐ URL ½«Ö´Ðиòéѯ¡£ÔÚ URL Öд«µÝ¸Ã²ÎÊýÖµ¡£
http://IISServer/nwindsql=SELECT * from Employees WHERE EmployeeID=%3F FOR
XML AUTO&root=root&EmployeeID=1
ä¯ÀÀÆ÷½« ÓÒ²àµÄËùÓÐÌØÊâ×Ö·û£¨Èç + ×Ö·û£©¶¼½øÐÐתÒ壨¼´£¬½« ÓÒ²àµÄ + ×Ö·ûת»»³É %20£©¡£
XML ÖеÄÌØÊâ×Ö·û
> ºÍ < ÕâÀà×Ö·ûÊÇXML ±ê¼Ç×Ö·û£¬ÔÚ XML ÖÐÓÐÌØÊâµÄº¬Òå¡£µ±ÔÚ SQL ²éѯ£¨»ò XPath ²éѯ£©ÖÐÖ¸¶¨ÕâЩ×Ö·ûʱ£¬
±ØÐë¶ÔËüÃǽøÐÐÊʵ±µÄ±àÂ루Ҳ³ÆΪʵÌå±àÂ룩¡£Ï±íÁгöÁËÕâЩÌØÊâ×Ö·û²¢ÃèÊöÁËËüÃǵĺ¬Òå¡£Óйظü¶àÐÅÏ¢£¬Çë²Î¼û
XML 1.0 ¹æ·¶ ÖÐµÄ XML 1.0 ¹æ·¶¡£


Ïà¹ØÎĵµ£º

¶ÁÈ¡ÅäÖÃÎļþ[·½Ê½Èý]Ö®xml½âÎöÅäÖÃÎļþ·¨

±¾ÎÄת×Ô£ºhttp://blog.csdn.net/wqf363/archive/2006/11/18/1394600.aspx
ʹÓüò½é
Êý¾ÝÀàÐÍ£º
xmlChar  Ìæ´úchar,ʹÓÃUTF-8±àÂëµÄÒ»×Ö½Ú×Ö·û´®¡£Èç¹ûÄãµÄÊý¾ÝʹÓÃÆäËü±àÂ룬Ëü±ØÐ뱻ת»»µ½UTF-8²ÅÄÜʹÓÃlibxmlµÄº¯Êý¡£
XmlDoc °üº¬ÓɽâÎöÎĵµ½¨Á¢µÄÊ÷½á¹¹£¬xmlDocPtrÊÇÖ¸ÏòÕâ¸ö½á¹¹µÄÖ¸Õë¡£
xmlNodePtr and xm ......

Jdom½¨Á¢XMLÎļþ


   JDOM ÊÇÒ»¸ö¿ªÔ´µÄ´¿java API,ÓÃÓÚ¿ìËÙ¿ª·¢ XML Ó¦ÓóÌÐò,JDOM½«XMLÎĵµ±íʾΪÊ÷£¬°üÀ¨ÔªËØ¡¢ÊôÐÔ¡¢ËµÃ÷¡¢´¦ÀíÖ¸Áî¡¢Îı¾½Úµã¡¢CDATA¶Î£¬µÈµÈ¡£JDOM¿ÉÒÔËæʱ·ÃÎÊÊ÷ÖеÄÈÎÒⲿ·Ö¡£Ê÷ÖÐËùÓв»Í¬½Úµã¾ùΪ¾ßÌåµÄÀà¡£ÔÚhttp://jdom.org¿ÉÒÔÏÂÔØJDOMµÄ×îа汾(ÎÒÕâÀïÊÇ1.0)¡£ÏÂÔغó½âѹ£¬JDOMµÄjarÎļþ¾ÍÊÇbuildÄ ......

¹ØÓÚSQLServer2005µÄѧϰ±Ê¼Ç——XMLµÄ´¦Àí

ÔÚ
SQLServer2005
ÖжÔ
XML
µÄ´¦Àí¹¦ÄÜÏÔÈ»ÔöÇ¿Á˺ܶ࣬ÌṩÁË
query(),value(),exist(),modify(),nodes()
µÈº¯Êý¡£
¹ØÓÚ
xml
£¬ÄÑÒÔÀí½âµÄ²»ÊÇ
SQLServer
ÌṩµÄº¯Êý£¬¶øÊǶÔ
xml
±¾ÉíµÄÀí½â£¬¿´Ëƺܼòµ¥µÄÎļþ¸ñʽ£¬´¦ÀíÆðÀ´È´ÊǷdz£À§Äѵġ£±¾ÎÄÖ»Êdzõ̽һ϶øÒÑ¡£
Ïê¼û
SQLServer
Áª»ú°ïÖú£º
Ö÷Ìâ
˵ ......

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

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

XMLÎļþ²Ù×÷

XmlDocument doc = new XmlDocument();
            string strtxt = "";
            doc.Load(Server.MapPath("XMLFile1.xml"));
          &nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ