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
1<thead>, <tfoot>, <tbody> elements
2
3**Database Output**
4
5View XML output from a database
6
7**Displayed as HTML**
8
9View an XML CD catalog
10See how the CD catalog can be displayed inside HTML elements
11See how the CD catalog can be displayed inside an HTML table
12See how to navigate the CD catalog
13A simple CD catalog application
14
15**Requesting XML data from a server**
16
17Request XML from a server using JavaScript
18Request XML from a server using VBScript
19Send a request to the server
20Communicating with a server using XML
21
22**XML Behaviors**
23
24XML Behaviors
25
26* * *
27
28# XML Quiz
29
30 
31
32* * *
33
34You can test your XML skills with W3Schools' Quiz.
35
36* * *
37
38## The Test
39
40The test contains 20 questions and there is no time limit.
41
42The test is not official, it's just a nice way to see how much you know, or don't know, about XML.
43
44* * *
45
46## Your Score Will be Counted
47
48You 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.
49
50Good luck! Start the XML Quiz
51
52* * *</tbody></tfoot></thead>