Search w3schools.com:

SHARE THIS PAGE

XML Examples


These examples demonstrate XML files, XML formatting and XML transformation (XSLT).

They also demonstrate JavaScript used together with XML (AJAX).


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

Examples explained


XML and CSS

View an XML CD catalog
View the corresponding CSS file
Display the CD catalog formatted with the CSS file

Examples explained


XML and XSLT

View an XML food menu
View the corresponding XSLT stylesheet
Display the food menu styled with the XSLT stylesheet

Examples explained


Parsing XML and the XML DOM

View a simple XML file (note.xml)
Parse the XML file - Crossbrowser example
Parse an XML string - Crossbrowser example

Examples explained


XML to HTML

View an XML CD catalog
Display XML data in an HTML table

Examples explained


XML Applications

View an XML CD catalog
Show XML data inside an HTML div element
Navigate through XML nodes
A simple CD catalog application

Examples explained


XML Output From a Server

See how ASP can return XML
See how PHP can return XML
View XML output from a database

Examples explained


XML DOM Advanced

Get the value of an XML element
Get the value of an XML attribute
Change the value of an XML element
Add a new attribute to an XML element
Create a new XML element
Remove an XML element

Examples explained




W3Schools Certification

W3Schools' Online Certification

The perfect solution for professionals who need to balance work, family, and career building.

More than 10 000 certificates already issued!

Get Your Certificate »

The HTML Certificate documents your knowledge of HTML.

The HTML5 Certificate documents your knowledge of advanced HTML5.

The CSS Certificate documents your knowledge of advanced CSS.

The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.

The jQuery Certificate documents your knowledge of jQuery.

The XML Certificate documents your knowledge of XML, XML DOM and XSLT.

The ASP Certificate documents your knowledge of ASP, SQL, and ADO.

The PHP Certificate documents your knowledge of PHP and SQL (MySQL).

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]