XML Examples-from w3schools.com

王朝c#·作者佚名  2006-12-17
窄屏简体版  字體: |||超大  

XML Examples Note: To view an XML document in Netscape 6: Open the XML file and then right-click in the XML file and select "View Page Source".

Note: Not all of the examples below work in Netscape.

Viewing XML Files

View a simple XML file (note.xml)

View the same XML file with an error

View an XML CD catalog

View an XML plant catalog

View an XML food menu

Viewing XML files with a dtd

View note.xml with an internal dtd

View note.xml with an external dtd

The Microsoft XML parser

View a simple XML file (xml_note.xml)

Loading the same file into the parser

Traversing the node tree of the file

Loading the same file into HTML

Displaying using JavaScript

View a simple XML file (xml_note.xml)

Format the same file with JavaScript

XML and CSS

View an XML CD catalog

View the corresponding CSS file

Display the CD catalog formatted with the CSS file

XML and XSL

View an XML food menu

View the corresponding XSL stylesheet

Display the food menu styled with the XSL stylesheet (IE6)

Display the food menu styled with the XSL stylesheet (IE5)

Data Binding

View an XML CD catalog

Bind the CD catalog to an HTML table

Add <thead>, <tfoot>, <tbody> elements

Database Output

View XML output from a database

Displayed as HTML

View an XML CD catalog

See how the CD catalog can be displayed inside HTML elements

See how the CD catalog can be displayed inside an HTML table

See how to navigate the CD catalog

A simple CD catalog application

Requesting XML data from a server

Request XML from a server using JavaScript

Request XML from a server using VBScript

Send a request to the server

Communicating with a server using XML

XML Behaviors

XML Behaviors

XML Quiz

The TestThe test contains 20 questions and there is no time limit.

The test is not official, it's just a nice way to see how much you know, or don't know, about XML.

Your Score Will be CountedYou will get 1 point for each correct answer. At the end of the Quiz, your total score will be displayed. Maximum score is 20 points.

Good luck! Start the XML Quiz

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航