Validating xml schema

XSD files are "XML Schemas" that describe the structure of a XML document.

The validator checks for well formedness first, meaning that your XML file must be parsable using a DOM/SAX parser, and only then does it validate your XML against the XML Schema.

The "item" element appears twice, and it contains a "title", an optional "note" element, a "quantity", and a "price" element.

validating xml schema-38

However, it seems most people on Windows use an XML Editor, such as Notepad (as described in Nate's answer) or XML Notepad 2007 as suggested by Steve C (there are also several commercial editors which I won't mention here).

Finally, you'll find different programs will, unfortunately, give different results.

XML Tools Plugin for Notepad This chapter provides notes and tutorial examples on XML Tools Plugin for Notepad .

Topics include downloading and installing Notepad and XML Tools Plugin; generating pretty print XML format; XSD validation; XSLT transformation.

The XML document above consists of a root element, "shiporder", that contains a required attribute called "orderid".

The "shiporder" element contains three different child elements: "orderperson", "shipto" and "item".by Domenico Briganti is licensed under a Creative Commons Attribuzione 3.0 Unported License.Permissions beyond the scope of this license may be available at [email protected] XML schema support in the XML schema editor is based on the W3C XML Schema Recommendation Specification.The XML Schema specifications XML Schema Part 1: Structures and XML Schema Part 2: Datatypes from the W3C Web site are used for validation.*The maximum size limit for file upload is 2 megabytes.