ÍøÂçѧԺ w3popÉçÇø ÍøÂç×ÊÔ´ ITÐÂÎÅ

w3pop.com :: ÍøÂçѧԺ :: XML :: XML ʵÀý

»áÔ±µÇ½

ÕʺÅ

ÃÜÂë

»Ø´ð

¼ÇסÃÜÂë

Íü¼ÇÃÜÂë? ×¢²á

XML
XML DHTMLÐÐΪ
XML Ïà¹Ø¼¼Êõ
XML ±à¼­Æ÷
XML ÕªÒª
XML ʵÀý
XML×Ö·û±àÂë
xml ÎĵµÊ÷
IEºÍ»ðºü¶ÁÈ¡XML·..

XML ʵÀý


×÷Õß:w3pop.com ·­Òë/ÕûÀí:w3pop.com ·¢²¼:2007-04-29 ÐÞ¸Ä:2007-08-16 ä¯ÀÀ:3776 :: ::

Viewing XML Files
²é¿´ XML Îļþ

In Firefox and Internet Explorer:
ÔÚ Firefox ºÍ Internet Explorer ä¯ÀÀÆ÷ÉÏ£º

Open the XML file (typically by clicking on a link) - The XML document will be displayed with color-coded root and child elements. A plus (+) or minus sign (-) to the left of the elements can be clicked to expand or collapse the element structure. To view the raw XML source (without the + and - signs), select "View Page Source" or "View Source" from the browser menu.
´ò¿ªXMLÎļþ£¨µ¥»÷Ò»¸öÁ´½Ó£©—— XMLÎļþ»á½«±êÓÐÑÕÉ«´úÂëµÄ¸ùĿ¼ºÍ×ÓĿ¼ÏÔʾ³öÀ´¡£µ¥»÷ÔªËØ×ó±ßµÄ¼ÓºÅ£¨+£©»ò¼õºÅ£¨-£©¿ÉÒÔÕ¹¿ª»òËõ»ØÔªËؽṹ¡£Èç¹ûÄãÏ£Íûä¯ÀÀXMLÔ´´úÂ루²»°üÀ¨¼ÓºÅºÍ¼õºÅ£©£¬¿ÉÒÔÔÚä¯ÀÀÆ÷µÄ“²é¿´”²Ëµ¥ÉÏÑ¡ÔñView Page Source"£¨Ô´Îļþ£©¡£

In Netscape 6:
ÔÚ Netscape 6 ä¯ÀÀÆ÷ÉÏ£º

Open the XML file, then right-click in XML file and select "View Page Source". The XML document will then be displayed with color-coded root and child elements.
´ò¿ªXMLÎļþ£¬È»ºóÓÃÊó±êÓÒ¼üµ¥»÷XMLÎļþ£¬Ñ¡Ôñ"View Page Source"£¨²é¿´Ò³ÃæÔ´´úÂ룩£¬XMLÎļþ»á½«±êÓÐÑÕÉ«´úÂëµÄ¸ùĿ¼ºÍ×ÓĿ¼ÏÔʾ³öÀ´¡£

In Opera 7 and 8:
ÔÚ Opera 7 ºÍ Opera 8 ä¯ÀÀÆ÷ÉÏ£º

In Opera 7: Open the XML file, then right-click in XML file and select "Frame" / "View Source". The XML document will be displayed as plain text. In Opera 8: Open the XML file, then right-click in XML file and select "Source". The XML document will be displayed as plain text.
ÔÚOpera 7 ä¯ÀÀÆ÷ÉÏ£¬´ò¿ªXMLÎļþ£¬È»ºóÓÃÊó±êÓÒ¼üµ¥»÷XMLÎļþ£¬Ñ¡Ôñ"Frame" / "View Source"£¨“¿ò¼Ü”/“²é¿´Ô´Îļþ”£©£¬XMLÎļþ»áÒÔÆÕͨÎı¾µÄÐÎʽÏÔʾ³öÀ´¡£

ÔÚOpera 8 ä¯ÀÀÆ÷ÉÏ£¬´ò¿ªXMLÎļþ£¬È»ºóÓÃÊó±êÓÒ¼üµ¥»÷XMLÎļþ£¬Ñ¡Ôñ“Source£¨Ô´Îļþ£©”£¬XMLÎļþ»áÒÔÆÕͨÎı¾µÄÐÎʽÏÔʾ³öÀ´¡£


Viewing XML Files
²é¿´ XMLÎļþ

²é¿´XMLÎļþ (note.xml)
²é¿´´øÓдíÎóµÄXMLÎļþ
²é¿´XML¼Ç¼µÄCDĿ¼
²é¿´ML¼Ç¼µÄÖ²Îï·ÖÀà
²é¿´XML¼Ç¼µÄ»ïʳÇåµ¥ 

Viewing XML files with a dtd
²é¿´Ê¹ÓÃÁËDTDµÄXMLÎļþ

ʹÓÃÁËÄÚ²¿ DTDµÄnote.xml
ʹÓÃÁËÍⲿ DTDµÄnote.xml 

The Microsoft XML parser
 Microsoft XML ½âÎöÆ÷

²é¿´Ò»¸ö¼òµ¥µÄXMLÎļþ(xml_note.xml)
½«ÏàͬµÄÎļþ¼ÓÔØµ½½âÎöÆ÷ÖÐ
´©Ô½ÎļþµÄ½ÚµãÊ÷
½«ÏàͬµÄÎļþ¼ÓÔØµ½HTMLÖÐ

Displaying using JavaScript
ʹÓÃJavaScriptÏÔʾXMLÊý¾Ý

²é¿´Ò»¸ö¼òµ¥µÄXMLÎļþ (xml_note.xml)
ͨ¹ýJavaScript¶ÔÏàͬµÄÎļþ½øÐиñʽ»¯

XML and CSS
XML Ó¦ÓÃ CSS

²é¿´Ò»¸öXML CDĿ¼
²é¿´ÏàÓ¦µÄCSSÎļþ
ÏÔʾÒѱ»CSS Ñùʽ±íÎļþ¸ñʽ»¯µÄCDĿ¼

XML and XSL
XML Ó¦ÓÃ XSL

²é¿´XML ʳƷ²Ëµ¥
²é¿´ÏàÓ¦µÄXSLÑùʽ±í
ÏÔʾÓÉXSL Ñùʽ±í¶¨ÒåµÄʳƷ²Ëµ¥ (IE6)
ÏÔʾÓÉXSL Ñùʽ±í¶¨ÒåµÄʳƷ²Ëµ¥ (IE5)

Data Binding
Êý¾Ý°ó¶¨

½«Õâ¸öCDĿ¼°ó¶¨µ½Ò»ÕÅHTML±í¸ñÖÐ
Ìí¼Ó <thead>¡¢<tfoot>¡¢<tbody> ÔªËØ 
²é¿´Ò»¸öXML CDĿ¼

Database Output
Êý¾Ý¿âÊä³ö

²é¿´Ô´ÓÚÊý¾Ý¿âµÄXMLÊä³ö½á¹û

Displayed as HTML
ÏÔʾΪHTML¸ñʽ

չʾCDĿ¼ÈçºÎÔÚHTMLÔªËØÖÐÏÔʾ
չʾCDĿ¼ÈçºÎÔÚHTML±í¸ñÖÐÏÔʾ
չʾCDĿ¼µÄ²Ù×÷·½·¨
չʾһ¸ö¼òµ¥µÄCDĿ¼ӦÓóÌÐò 
²é¿´Ò»¸öXML CDĿ¼

Requesting XML data from a server
´Ó·þÎñÆ÷¶ËÇëÇóXMLÊý¾Ý

Ïò·þÎñÆ÷·¢ËÍÒ»¸öÇëÇó
ʹÓÃXML·½Ê½Óë·þÎñÆ÷½øÐн»Á÷

Using the XMLHttpRequest Object
ʹÓàXMLHttpRequest ¶ÔÏó

ͨ¹ýXML HTTP·½Ê½¼ÓÔØÒ»¸öXMLÎļþ (ʹÓÃJavaScript)
ͨ¹ýXML HTTP ·½Ê½¼ÓÔØÒ»¸öXMLÎļþ (ʹÓÃVBScript)
ͨ¹ýXML HTTP ·½Ê½½«Ò»¸öÎı¾Îļþ¼ÓÔØµ½Ò»¸ödiv ÔªËØÖÐ (ʹÓÃJavaScript)
ͨ¹ýXML HTTP·½Ê½Êéдһ¸öHEADÇëÇó (ʹÓÃJavaScript)
ͨ¹ýXML HTTP ·½Ê½Ð´Ò»¸öÖ¸¶¨µÄHEADÇëÇó (ʹÓÃJavaScript) 

XML Behaviors
XML ÐÐΪ

XMLÐÐΪ 

ÆÀÂÛ (0) All