XML Examples-from w3schools.com

类别:.NET开发 点击:0 评论:0 推荐:
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

You can test your XML skills with W3Schools' Quiz.

The Test

The 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 Counted

You 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

本文地址:http://com.8s8s.com/it/it41937.htm