w3schools
  
HOME HTML CSS XML JAVASCRIPT ASP PHP SQL MORE...   References Examples Forum About

XML Examples

« Previous Next Chapter »

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 with JavaScript

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

Examples explained


XML to HTML

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

Examples explained


Using the XMLHttpRequest Object

Online communication with server while typing input using XML HTTP
Load an XML file with XML HTTP
Load a textfile into a div element with XML HTTP
Make a HEAD request with XML HTTP
Make a specified HEAD request with XML HTTP
Display an XML file as an HTML table

Examples explained


XML Application

View an XML CD catalog
See how the XML data is displayed inside an HTML table
See how the XML data is displayed inside the <div> element
See how you can navigate through the XML records
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
Change the value of an XML attribute
Create a new XML element
Remove an XML element

Examples explained


« Previous Next Chapter »


Altova® MissionKit® - Integrated Suite of XML Tools

Altova MissionKit

The Altova MissionKit is an integrated suite of tools ideal for:

  • XML development
  • Web & Web services development
  • Data mapping & integration
  • Rendering & publishing XML & database data
  • XBRL validation, taxonomy editing, transformation & rendering

The MissionKit for XML Developers includes XMLSpy® - the industry-leading XML editor; MapForce® - a graphical data mapping, conversion, and integration tool; StyleVision® - a visual XSLT stylesheet designer; DiffDog® - an XML-aware diff/merge tool; and 2 additional tools.

Try all 6 products free for 30 days!

Download a fully-functional free trial

  Altova Missionkit


WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Top 10 Web Hosting
UK Reseller Hosting
Web Hosting
FREE Web Hosting
Top Web Hosting
Windows Hosting
WEB BUILDING
XML Editor – Free Trial!
FREE Flash Website
FREE Web Templates
FLIGHT TICKETS
Find the cheapest flight
to any destination now!
EDUCATION
US Web Design Schools
HTML Certification
JavaScript Certification
XML Certification
PHP Certification
ASP Certification
STATISTICS
Browser Statistics
Browser OS
Browser Display