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Îļþ
£¼?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 ......
using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Xml;
using FilmOnLine.Model;
namespace FilmOnLine.DAL
{
public static class FilmService
{
/// <summary>
/// Ìí¼ÓµçÓ°
/// </summary ......
ÈçºÎ¼ÓÔØÓÐÍâ¹úºÍÌØÊâ×Ö·ûµÄÎĵµ£¿
¡¡¡¡Îĵµ¿ÉÒÔ°üº¬Íâ¹ú×Ö·û£¬ÀýÈ磺
¡¡¡¡foreign characters (úóí?)
¡¡¡¡ÀýÈç íá µÄÍâ¹ú×Ö·û±ØÐëÔÚÇ°Ãæ¼ÓÉÏ escape ÐòÁС£Íâ¹ú×Ö·û¿ÉÒÔÊÇ UTF-8 ±àÂë»òÓò»Í¬±àÂëÖ¸¶¨£¬ÈçÏÂËùʾ£º
¡¡¡¡foreign characters (íá)
¡¡¡ ......
ËÄÖÖ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
& ......
×î½üÔÚÏîÄ¿ÖÐÓöµ½flex¿çÓò·ÃÎʵݲȫɳÏäÎÊÌ⣬²é×ÊÁÏÁ˽⵽ÐèÒªÔÚ·þÎñ¶Ë¼ÓÉÏcrossdomain.xmlÎļþ£¬¼´£º
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-do ......