XML Schema
From BC$ MobileTV Wiki
XML Schema Definition (commonly abbreviated XSD) is an XML-based document definition format which defines the structure of an XML document. It was introduced by the W3C as an alternative to DTDs in 2001.[1]
Contents
Specifications
- XML Schema spec: http://www.w3.org/XML/Schema
- XML Schema instance (usually prefixed as xsi namespace): http://www.w3.org/2001/XMLSchema-instance
- W3C Specification of XML Schema (datatypes): http://www.w3.org/TR/xmlschema-2/
Data Types
XML Schema differs from DTD primarily through the use of strong typing of data, with a large number of datatypes commonly used in modern programming languages, such as string, integer, date and time.
EXAMPLES
- wikipedia: List of XML schemas
- Dublic Core Metadata XML Schema: http://dublincore.org/schemas/xmls/qdc/2008/02/11/dc.xsd[2][3]
- SAVOIR - Message XML Schema: http://198.164.40.210/scenarioRepos/scenario.xsd
- Crossword XML Schema: http://www.koonts.com/crossword/xmlschema/#xsd (see talk:XML_Schema for cache)[4][5][6]
- LandXML schema: http://landxml.org/schema/LandXML-1.2/documentation/LandXML-1.2Doc.html[7][8][9]
- Microsoft - Purchase Order schema: http://msdn.microsoft.com/en-us/library/ms256129.aspx
- OpenArchives schema: http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd
W3C
- XML Schema for XML Schemas: http://www.w3.org/2001/XMLSchema.xsd
- XML Syntax-restrictions schema: http://www.w3.org/2001/xml.xsd (has added html description, view-source for schema)
- XHTML strict: http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd | XHTML Transitional | XHTML Frameset[10]
- SPARQL Query Results format schema: http://www.w3.org/2001/sw/DataAccess/rf1/result2.xsd
- P3P - Personal Privacy Preferences schema: http://www.w3.org/2002/01/P3Pv1
Tools
- W3C - XML Schema validator: http://www.w3.org/2001/03/webdata/xsv
- DTD to XML Schema: http://www.hitsw.com/xml_utilites/
- Generate XSD from XML: http://www.dotkam.com/2008/05/28/generate-xsd-from-xml/
- XML-to-XSD Schema generator: http://www.freeformatter.com/xsd-generator.html[11]
- XSD-to-XML Document (sample data) generator: http://www.xsd2xml.com/[12]
- XSD Viewer (ONLINE): http://xmlgrid.net/view/xsdViewer.htm (visual editor)* Infer XML Schema from XML: http://www.liquid-technologies.com/XmlToXsd.aspx (commercial software)
- XSD Diagram - diagraming tool: http://regis.cosnier.free.fr/?page=XSDDiagram (Windows/C#)
Resources
- Definitive XML Schema (2001) - examples: http://www.datypic.com/books/defxmlschema/examples.html (BOOK)
- XML Schema to Graphviz: http://sourceforge.net/projects/xmlschematograp/
- xs3p - XML Schema viewer: http://xml.fiforms.org/xs3p/ | EXAMPLE (XSLT to render an XSD to simplified xHTML overview)
- XsdVi (JAVA): http://sourceforge.net/projects/xsdvi/ | EXAMPLE (transforms W3C XML Schema instances into interactive diagrams in SVG format)
Tutorials
- W3 Schools Tutorial on XSD (XML Schemas): http://www.w3schools.com/schema/
- Introduction to the new Eclipse XSD Editor: http://wiki.eclipse.org/index.php/Introduction_to_the_XSD_Editor
- XSD Tutorials and resources: http://www.smrtx.com/RS/xsd.htm
- XML Schema How to Restrict Attribute by Enumeration: http://stackoverflow.com/a/33303107
- Generating sample XML from XSD or DTD (in Eclipse): http://www.twm-kd.com/programming-computers/generating-sample-xml-from-xsd-or-dtd-in-eclipse/[13]
- Generate Sample XML from XSD (in VisualStudio): http://www.codeproject.com/Articles/400016/Generate-Sample-XML-from-XSD[14][15]
- Generating XML files from XML schemas (in IBM RAD/WID): http://publib.boulder.ibm.com/infocenter/iadthelp/v7r0/index.jsp?topic=/org.eclipse.wst.xmleditor.doc.user/topics/tcrexxsd.html
- Generating an XML schema from XML doc: http://blogs.techrepublic.com.com/programming-and-development/?p=3098&tag=nl.e101
- Create Web Services using XSD first approach: http://navveenbalani.com/index.php/articles/create-web-services-using-xsd-first-approach/
External Links
- wikipedia: XML Schema
- XML Schema, a brief introduction: http://lucas.ucs.ed.ac.uk/xml-schema/
- wikipedia: XBRL
- wikipedia: Business Rules Markup Language
- Diane Mueller talks about financial data, XBRL and the Semantic Web: http://blogs.talis.com/nodalities/2009/10/diane-mueller-talks-about-financial-data-xbrl-and-the-semantic-web.php
- XML Schema (XSD) -- XML Schemas and why we need them: http://knol.google.com/k/jackie-sprott/xml-schema-xsd/2i2dcklqevrpq/2?domain=knol.google.com&locale=en&path_title=xml-schema-xsd#
- XML Schemas - xFront's tutorials and examples (including Units,Currency,Countries,ISBN): http://www.xfront.com/files/xml-schema.html
- Best Practice -- Use Multiple Schema Languages: http://xfront.com/Integrated-schema-approach/Use-Multiple-Schema-Languages.html
- xsd:dateTime: http://books.xmlschemata.org/relaxng/ch19-77049.html
- Generating an XML schema using XSLT: http://blogs.techrepublic.com.com/programming-and-development/?p=3098
- Generate XSD from XML: http://www.dotkam.com/2008/05/28/generate-xsd-from-xml/
- Deriving Ontologies from XML Schema: http://arxiv.org/ftp/arxiv/papers/1001/1001.4901.pdf
References
- ↑ XML Schemas suggested as a replacement for DTDs: http://xml.coverpages.org/redrice-xml-schema20010228.html
- ↑ Dublin Core XML schemas: http://dublincore.org/schemas/xmls/
- ↑ Dublin Core Schema (plain text summary): http://metadata.net/dstc/DC-10-EN/schema.txt
- ↑ Lisa Koonts' cross-browser SVG CrosswordPlayer: http://www.koonts.com/crossword/
- ↑ .puz file format: http://www.joshisanerd.com/puz/
- ↑ reverse engineering -- across lite's .puz format: http://community.livejournal.com/evan_tech/155481.html
- ↑ LandXML schema (BACKUP): http://landxml.s3-website-us-east-1.amazonaws.com/specifications/LandXML-1.2%20Schema%20Document.html
- ↑ LandXML Structural Requirements: http://icsm.govspace.gov.au/files/2010/11/ePlan_Protocol_-_LandXML_Structural_Requirements_v1.0.pdf
- ↑ LandXML Tranformation samples: http://www.landxml.org/schema/UserSamples/UserTransformSamples.htm
- ↑ XHTML schemas: http://www.w3.org/TR/xhtml1-schema/#schemas
- ↑ How to generate sample XML documents from their DTD or XSD?: http://stackoverflow.com/questions/17106/how-to-generate-sample-xml-documents-from-their-dtd-or-xsd
- ↑ XSD-to-XML generator: http://xmlgrid.net/genXml.html
- ↑ Generating XML files from XML schemas: http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.wst.xmleditor.doc.user%2Ftopics%2Ftcrexxsd.html
- ↑ How to - Generate an XML Snippet From an XML Schema: http://msdn.microsoft.com/en-us/library/ms255824.aspx
- ↑ How to - Create an XML Document Based on an XSD Schema (XML Schema Designer, VS10): http://msdn.microsoft.com/en-us/library/vstudio/dd489258%28v=vs.100%29.aspx