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

xml ÉùÃ÷¡¾×¢ÊÍ¡¿ Òý·¢µÄÒì³£


xml -ÉùÃ÷-Òý·¢µÄÒì³£
XML ÉùÃ÷ [XML ±ê×¼]
XML ÉùÃ÷ͨ³£ÔÚ XML ÎĵµµÄµÚÒ»ÐгöÏÖ¡£XML ÉùÃ÷²»ÊDZØÑ¡Ïµ«ÊÇÈç¹ûʹÓà XML ÉùÃ÷£¬±ØÐëÔÚÎĵµµÄµÚÒ»ÐУ¬Ç°Ãæ²»µÃ°üº¬ÈκÎÆäËûÄÚÈÝ»ò¿Õ°×¡£
ÎĵµÓ³ÉäÖÐµÄ XML ÉùÃ÷°üº¬ÏÂÁÐÄÚÈÝ£º
°æ±¾ºÅ <?xml version="1.0"?>¡£
ÕâÊDZØÑ¡Ïî¡£¾¡¹ÜÒÔºóµÄ XML °æ±¾¿ÉÄÜ»á¸ü¸Ä¸ÃÊý×Ö£¬µ«ÊÇ 1.0 Êǵ±Ç°µÄ°æ±¾¡£
±àÂëÉùÃ÷ <?xml version="1.0" encoding="UTF-8"?>¡£
ÕâÊÇ¿ÉÑ¡Ïî¡£Èç¹ûʹÓñàÂëÉùÃ÷£¬±ØÐë½ô½ÓÔÚ XML ÉùÃ÷µÄ°æ±¾ÐÅÏ¢Ö®ºó£¬²¢ÇÒ±ØÐë°üº¬´ú±íÏÖÓÐ×Ö·û±àÂëµÄÖµ¡£
XML ÉùÃ÷»¹¿ÉÒÔ°üº¬¶ÀÁ¢ÉùÃ÷£¬ÀýÈç <?xml version="1.0" encoding="UTF-8" standalone="yes"?>¡£Óë±àÂëÉùÃ÷ÀàËÆ£¬¶ÀÁ¢ÉùÃ÷Ò²ÊÇ¿ÉÑ¡Ïî¡£Èç¹ûʹÓöÀÁ¢ÉùÃ÷£¬±ØÐëÔÚ XML ÉùÃ÷µÄ×îºó¡£
------------------------------------------------------------------------------------------------------------------------------------
×¢ÒâÔÚʹÓà java (org.apache.common.digester..)µÄʱºò£¬ Èç¹û xml  ÉùÃ÷Ç°¼ÓÓÐ×¢ÊÍ£º
½«Å׳öÈçÏ Òì³££º
The   processing   instruction   target   matching   "[xX][mM][lL]"   is   not   allowed.  


Ïà¹ØÎĵµ£º

XML ×Ö·ûÎÊÌâ

ÓÃTXT±à¼­ÁËÒ»¸öXMLÎĵµ
<?xml version="1.0" encoding="utf-8"?>
<TEST>"
<Test Value="ÕâÊÇÒ»¸ö²âÊÔ" />
</TEST>
ÓÃIE´ò¿ªµÄʱºòÒ»Ö±ÏÔʾÓдíÎó£¬ÏÔʾººÓï×Ö·û²»Ö§³Ö¡£
¸ÄΪencoding=“gb2312”ºóÏÔʾÕý³£ÁË¡£
µ«Õâ¸ö½á¹ûÓë³õÖÔÎ¥±³£¬ÒòΪUTF-8ÊÇÖ§³ÖËùÓÐÓïÑԵġ£
ºóÀ´²éÕÒÔ­Ò ......

spring xmlÖеÄpropery µÄnameÊôÐÔÃû×ÔÀ´Ô´

½ñÌìÔÚÔËÓÃspringµÄPropertyPlaceholderConfigurerʱ·¢ÏÖÒ»¸öÓÐÒâ˼µÄÄÚÈÝ£¬µ±ÄãÔÚapplicationContextÖÐÅäÖÃÒ»¸öPropertyPlaceholderConfigurerµÄbeanʱ£¬ÓÐlocationºÍlocationsµÄÊôÐÔ£¬²»Ã÷˼Òâlocation¶ÔÓ¦Ò»¸ö.propertiesÎļþ£¬
locations¶ÔÓ¦¶à¸ö.propertiesÎļþ£¬³å×ÅÏë¿´Ò»ÏÂPropertyPlaceholderConfigurerµÄʵÏÖ»úÖ ......

XMLÈëÃŵij£¼ûÎÊÌâ(Èý)

ÈçºÎ¼ÓÔØÓÐÍâ¹úºÍÌØÊâ×Ö·ûµÄÎĵµ£¿
¡¡¡¡Îĵµ¿ÉÒÔ°üº¬Íâ¹ú×Ö·û£¬ÀýÈ磺
 ¡¡¡¡foreign characters (úóí?) 
¡¡¡¡ÀýÈç íá µÄÍâ¹ú×Ö·û±ØÐëÔÚÇ°Ãæ¼ÓÉÏ escape ÐòÁС£Íâ¹ú×Ö·û¿ÉÒÔÊÇ UTF-8 ±àÂë»òÓò»Í¬±àÂëÖ¸¶¨£¬ÈçÏÂËùʾ£º
 ¡¡¡¡foreign characters (íá) 
¡¡¡ ......

XMLÈëÃŵij£¼ûÎÊÌâ(ËÄ)

ÔÚ XML ¶ÔÏóÄ£ÐÍÖÐÈçºÎ´¦Àí¿Õ°××Ö·û£¿
¡¡¡¡ÓÐЩʱºò£¬XML ¶ÔÏóÄ£Ðͽ«ÏÔʾ°üº¬¿Õ°××Ö·ûµÄ TEXT ½Úµã¡£¿Õ°××Ö·û±»½Ø¶Ïºó£¬¶à°ë»á´øÀ´Ò»Ð©»ìÂÒ¡£ÀýÈçÏÂÃæµÄ XML Àý×Ó£º
 ¡¡¡¡]>
¡¡¡¡Smith
¡¡¡¡John
 
¡¡¡¡Éú³ÉÏÂÁÐÊ÷£º
 ¡¡¡¡Processing Instruction: xml
¡¡¡¡DocType: person
¡¡¡¡ELEMENT: person ......

ËÄÖÖXML½âÎö·½·¨

ËÄÖÖXML½âÎö·½·¨
xmlÎļþ£º
£¼?xml version="1.0" encoding="GB2312"?£¾
£¼RESULT£¾
£¼VALUE£¾
£¼NO£¾A1234£¼/NO£¾
£¼ADDR£¾ËÄ´¨Ê¡XXÏØXXÕòXX·X¶ÎXXºÅ£¼/ADDR£¾
£¼/VALUE£¾
£¼VALUE£¾
£¼NO£¾B1234£¼/NO£¾
¡¡ ¡¡£¼ADDR£¾ËÄ´¨Ê¡XXÊÐXXÏçXX´åXX×飼/ADDR£¾
£¼/VALUE£¾
£¼/RESULT£¾
1£©DOM
  & ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ