home HOME

XML Basic
XML HOME
XML Introduction
XML How to use
XML Syntax
XML Elements
XML Attributes
XML Validation
XML Validator
XML Browsers
XML Viewing
XML CSS
XML XSL
XML Data Island
XML in Real Life
XML Parser

XML Advanced
XML Namespaces
XML CDATA
XML Encoding
XML Server
XML Application
XML HTTP Request
XML Save Data
XML Behaviors
XML Technologies
XML Editors
XML Summary

Examples/Quiz
XML Examples
XML Quiz

Selected Reading
Web Statistics
Web Glossary
Web Hosting
Web Quality

W3Schools Forum

Helping W3Schools

pixels

XML Examples

prev next

Viewing XML Files

In Firefox and 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.

In 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.

In Opera 7 and 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.


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

Send a request to the server
Communicating with a server using XML

Using the XMLHttpRequest Object

Load an XML file with XML HTTP (JavaScript)
Load an XML file with XML HTTP (VBScript)
Load a textfile into a div element with XML HTTP (JavaScript)
Make a HEAD request with XML HTTP (JavaScript)
Make a specified HEAD request with XML HTTP (JavaScript)

XML Behaviors

XML Behaviors


prev next

Jump to: Top of Page or HOME or Printer Friendly Printer friendly page

W3Schools provides material for training only. We do not warrant the correctness of its contents. The risk from using it lies entirely with the user. While using this site, you agree to have read and accepted our terms of use and privacy policy.

Copyright 1999-2007 by Refsnes Data. All Rights Reserved.

Validate Validate W3C-WAI level A conformance icon W3Schools was converted to XHTML in December 1999