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