Errors in XML documents will stop your XML applications.
The W3C XML specification states that a program should stop processing an XML document if it finds an error. The reason is that XML
software should be small, fast, and compatible.
HTML browsers will display documents with errors (like missing end tags). HTML browsers are big
and incompatible because they have a lot of unnecessary code to deal with (and display) HTML errors.
With XML, errors are not allowed.
Syntax-Check Your XML
To help you syntax-check your XML, we have created an XML validator.
Paste your XML into the text area below, and syntax-check it by clicking the "Validate" button.
Note: This only checks if your XML is "Well formed". If you want to validate your XML against a DTD, see the last paragraph on this page.
Syntax-Check an XML File
You can syntax-check an XML file by typing the URL of the file into the input field below, and then click the "Validate" button:
Note: If you get an "Access denied" error, it's because your browser security does not allow file access across domains.
The file "note_error.xml" demonstrates your browsers error handling. If you want see an error free message, substitute the "note_error.xml" with "cd_catalog.xml".
Validate Your XML Against a DTD
If you know DTD, you can validate your XML in the text area below.
Just add the DOCTYPE declaration to your XML and click the "Validate" button:
Note: Only Internet Explorer will actually check your XML against the DTD. Firefox, Mozilla, Netscape, and Opera will not.
Need an easy way to get data into XML, or transform XML to another format?
MapForce lets you map XML data to/from any combination of XML, database, flat file, Excel 2007, XBRL, or Web services data.
Then it transforms data instantly or auto-generates royalty-free data integration code for recurrent conversions.
Download a free, fully functional 30-day trial to experience the following features:
Easy-to-use, graphical data mapping interface
Instant data transformation
XSLT 1.0/2.0 and XQuery code generation
Java, C#, and C++ code generation
Advanced data processing functions
Support for all major relational databases including SQL Server, IBM DB2, Oracle, and more
W3Schools is for training only. We do not warrant the correctness of its content.
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-2009 by Refsnes Data. All Rights Reserved.