CINXE.COM

XML schema - Wikipedia

<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-toc-available" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>XML schema - Wikipedia</title> <script>(function(){var className="client-js vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-toc-available";var cookie=document.cookie.match(/(?:^|; )enwikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy", "wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"46d0c402-4a51-4a6c-a529-87391bf97674","wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"XML_schema","wgTitle":"XML schema","wgCurRevisionId":1186666181,"wgRevisionId":1186666181,"wgArticleId":846623,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Webarchive template wayback links","Articles with short description","Short description matches Wikidata","Articles that may contain original research from March 2015","All articles that may contain original research","Articles needing additional references from March 2015","All articles needing additional references","Articles with multiple maintenance issues","Wikipedia articles needing clarification from July 2015","All accuracy disputes","Articles with disputed statements from May 2015" ,"Data modeling languages","ISO standards","World Wide Web Consortium standards","XML","XML-based standards"],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"XML_schema","wgRelevantArticleId":846623,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"wikipedia","wgCiteReferencePreviewsActive":false,"wgFlaggedRevsParams":{"tags":{"status":{"levels":1}}},"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":20000,"wgRelatedArticlesCompat":[],"wgCentralAuthMobileDomain":false,"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"interlanguage", "wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgWikibaseItemId":"Q1043076","wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"],"GEHomepageSuggestedEditsEnableTopics":true,"wgGETopicsMatchModeEnabled":false,"wgGEStructuredTaskRejectionReasonTextInputEnabled":false,"wgGELevelingUpEnabledForUser":false};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.cite.styles":"ready","ext.pygments":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","jquery.makeCollapsible.styles":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"}; RLPAGEMODULES=["ext.cite.ux-enhancements","ext.pygments.view","site","mediawiki.page.ready","jquery.makeCollapsible","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.gadget.ReferenceTooltips","ext.gadget.switcher","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.popups","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.interface","ext.cx.eventlogging.campaigns","ext.cx.uls.quick.actions","wikibase.client.vector-2022","ext.checkUser.clientHints","ext.growthExperiments.SuggestedEditSession","wikibase.sidebar.tracking"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=ext.cite.styles%7Cext.pygments%2CwikimediaBadges%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediamessages.styles%7Cjquery.makeCollapsible.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&amp;only=styles&amp;skin=vector-2022"> <script async="" src="/w/load.php?lang=en&amp;modules=startup&amp;only=scripts&amp;raw=1&amp;skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=site.styles&amp;only=styles&amp;skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.4"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="XML schema - Wikipedia"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//en.m.wikipedia.org/wiki/XML_schema"> <link rel="alternate" type="application/x-wiki" title="Edit this page" href="/w/index.php?title=XML_schema&amp;action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png"> <link rel="icon" href="/static/favicon/wikipedia.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikipedia (en)"> <link rel="EditURI" type="application/rsd+xml" href="//en.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://en.wikipedia.org/wiki/XML_schema"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en"> <link rel="alternate" type="application/atom+xml" title="Wikipedia Atom feed" href="/w/index.php?title=Special:RecentChanges&amp;feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject mw-editable page-XML_schema rootpage-XML_schema skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Jump to content</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Main menu" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Main menu</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">Main menu</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">hide</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navigation </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/Main_Page" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li><li id="n-contents" class="mw-list-item"><a href="/wiki/Wikipedia:Contents" title="Guides to browsing Wikipedia"><span>Contents</span></a></li><li id="n-currentevents" class="mw-list-item"><a href="/wiki/Portal:Current_events" title="Articles related to current events"><span>Current events</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Special:Random" title="Visit a randomly selected article [x]" accesskey="x"><span>Random article</span></a></li><li id="n-aboutsite" class="mw-list-item"><a href="/wiki/Wikipedia:About" title="Learn about Wikipedia and how it works"><span>About Wikipedia</span></a></li><li id="n-contactpage" class="mw-list-item"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us" title="How to contact Wikipedia"><span>Contact us</span></a></li> </ul> </div> </div> <div id="p-interaction" class="vector-menu mw-portlet mw-portlet-interaction" > <div class="vector-menu-heading"> Contribute </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-help" class="mw-list-item"><a href="/wiki/Help:Contents" title="Guidance on how to use and edit Wikipedia"><span>Help</span></a></li><li id="n-introduction" class="mw-list-item"><a href="/wiki/Help:Introduction" title="Learn how to edit Wikipedia"><span>Learn to edit</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Wikipedia:Community_portal" title="The hub for editors"><span>Community portal</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Special:RecentChanges" title="A list of recent changes to Wikipedia [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-upload" class="mw-list-item"><a href="/wiki/Wikipedia:File_upload_wizard" title="Add images or other media for use on Wikipedia"><span>Upload file</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/Main_Page" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/wikipedia.png" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="Wikipedia" src="/static/images/mobile/copyright/wikipedia-wordmark-en.svg" style="width: 7.5em; height: 1.125em;"> <img class="mw-logo-tagline" alt="The Free Encyclopedia" src="/static/images/mobile/copyright/wikipedia-tagline-en.svg" width="117" height="13" style="width: 7.3125em; height: 0.8125em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/Special:Search" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Search Wikipedia [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Search Wikipedia" aria-label="Search Wikipedia" autocapitalize="sentences" title="Search Wikipedia [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Personal tools"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Change the appearance of the page&#039;s font size, width, and color" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Appearance" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Appearance</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=C13_en.wikipedia.org&amp;uselang=en" class=""><span>Donate</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:CreateAccount&amp;returnto=XML+schema" title="You are encouraged to create an account and log in; however, it is not mandatory" class=""><span>Create account</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:UserLogin&amp;returnto=XML+schema" title="You&#039;re encouraged to log in; however, it&#039;s not mandatory. [o]" accesskey="o" class=""><span>Log in</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="Log in and more options" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Personal tools" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Personal tools</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="User menu" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=C13_en.wikipedia.org&amp;uselang=en"><span>Donate</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:CreateAccount&amp;returnto=XML+schema" title="You are encouraged to create an account and log in; however, it is not mandatory"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Create account</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:UserLogin&amp;returnto=XML+schema" title="You&#039;re encouraged to log in; however, it&#039;s not mandatory. [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Log in</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> Pages for logged out editors <a href="/wiki/Help:Introduction" aria-label="Learn more about editing"><span>learn more</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Special:MyContributions" title="A list of edits made from this IP address [y]" accesskey="y"><span>Contributions</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Special:MyTalk" title="Discussion about edits from this IP address [n]" accesskey="n"><span>Talk</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="Contents" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc" > <h2 class="vector-pinnable-header-label">Contents</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">hide</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"> <a href="#" class="vector-toc-link"> <div class="vector-toc-text">(Top)</div> </a> </li> <li id="toc-Validation" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Validation"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>Validation</span> </div> </a> <ul id="toc-Validation-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Languages" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Languages"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Languages</span> </div> </a> <button aria-controls="toc-Languages-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Languages subsection</span> </button> <ul id="toc-Languages-sublist" class="vector-toc-list"> <li id="toc-Document_Type_Definitions" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Document_Type_Definitions"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.1</span> <span>Document Type Definitions</span> </div> </a> <ul id="toc-Document_Type_Definitions-sublist" class="vector-toc-list"> <li id="toc-Tool_support" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Tool_support"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.1.1</span> <span>Tool support</span> </div> </a> <ul id="toc-Tool_support-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-W3C_XML_Schema" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#W3C_XML_Schema"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.2</span> <span>W3C XML Schema</span> </div> </a> <ul id="toc-W3C_XML_Schema-sublist" class="vector-toc-list"> <li id="toc-Advantages_over_DTDs" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Advantages_over_DTDs"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.2.1</span> <span>Advantages over DTDs</span> </div> </a> <ul id="toc-Advantages_over_DTDs-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Commonality_with_RELAX_NG" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Commonality_with_RELAX_NG"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.2.2</span> <span>Commonality with RELAX NG</span> </div> </a> <ul id="toc-Commonality_with_RELAX_NG-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Advantages_over_RELAX_NG" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Advantages_over_RELAX_NG"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.2.3</span> <span>Advantages over RELAX NG</span> </div> </a> <ul id="toc-Advantages_over_RELAX_NG-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Disadvantages" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Disadvantages"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.2.4</span> <span>Disadvantages</span> </div> </a> <ul id="toc-Disadvantages-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Tool_Support_2" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Tool_Support_2"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.2.5</span> <span>Tool Support</span> </div> </a> <ul id="toc-Tool_Support_2-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-RELAX_NG" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#RELAX_NG"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.3</span> <span>RELAX NG</span> </div> </a> <ul id="toc-RELAX_NG-sublist" class="vector-toc-list"> <li id="toc-Advantages_over_W3C_XML_Schema" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Advantages_over_W3C_XML_Schema"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.3.1</span> <span>Advantages over W3C XML Schema</span> </div> </a> <ul id="toc-Advantages_over_W3C_XML_Schema-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Disadvantages_2" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Disadvantages_2"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.3.2</span> <span>Disadvantages</span> </div> </a> <ul id="toc-Disadvantages_2-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Schematron" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Schematron"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.4</span> <span>Schematron</span> </div> </a> <ul id="toc-Schematron-sublist" class="vector-toc-list"> <li id="toc-Advantages" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Advantages"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.4.1</span> <span>Advantages</span> </div> </a> <ul id="toc-Advantages-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Disadvantages_3" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Disadvantages_3"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.4.2</span> <span>Disadvantages</span> </div> </a> <ul id="toc-Disadvantages_3-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Tool_Support_3" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Tool_Support_3"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.4.3</span> <span>Tool Support</span> </div> </a> <ul id="toc-Tool_Support_3-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Namespace_Routing_Language_(NRL)" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Namespace_Routing_Language_(NRL)"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.5</span> <span>Namespace Routing Language (NRL)</span> </div> </a> <ul id="toc-Namespace_Routing_Language_(NRL)-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Terminology" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Terminology"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>Terminology</span> </div> </a> <ul id="toc-Terminology-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Schema_authoring_choices" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Schema_authoring_choices"> <div class="vector-toc-text"> <span class="vector-toc-numb">4</span> <span>Schema authoring choices</span> </div> </a> <ul id="toc-Schema_authoring_choices-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-See_also" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#See_also"> <div class="vector-toc-text"> <span class="vector-toc-numb">5</span> <span>See also</span> </div> </a> <ul id="toc-See_also-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-References" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#References"> <div class="vector-toc-text"> <span class="vector-toc-numb">6</span> <span>References</span> </div> </a> <ul id="toc-References-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-External_links" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#External_links"> <div class="vector-toc-text"> <span class="vector-toc-numb">7</span> <span>External links</span> </div> </a> <ul id="toc-External_links-sublist" class="vector-toc-list"> </ul> </li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="Contents" class="vector-toc-landmark"> <div id="vector-page-titlebar-toc" class="vector-dropdown vector-page-titlebar-toc vector-button-flush-left" > <input type="checkbox" id="vector-page-titlebar-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-titlebar-toc" class="vector-dropdown-checkbox " aria-label="Toggle the table of contents" > <label id="vector-page-titlebar-toc-label" for="vector-page-titlebar-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Toggle the table of contents</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">XML schema</span></h1> <div id="p-lang-btn" class="vector-dropdown mw-portlet mw-portlet-lang" > <input type="checkbox" id="p-lang-btn-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-lang-btn" class="vector-dropdown-checkbox mw-interlanguage-selector" aria-label="Go to an article in another language. Available in 12 languages" > <label id="p-lang-btn-label" for="p-lang-btn-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive mw-portlet-lang-heading-12" aria-hidden="true" ><span class="vector-icon mw-ui-icon-language-progressive mw-ui-icon-wikimedia-language-progressive"></span> <span class="vector-dropdown-label-text">12 languages</span> </label> <div class="vector-dropdown-content"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="interlanguage-link interwiki-cs mw-list-item"><a href="https://cs.wikipedia.org/wiki/XML_sch%C3%A9ma" title="XML schéma – Czech" lang="cs" hreflang="cs" data-title="XML schéma" data-language-autonym="Čeština" data-language-local-name="Czech" class="interlanguage-link-target"><span>Čeština</span></a></li><li class="interlanguage-link interwiki-da mw-list-item"><a href="https://da.wikipedia.org/wiki/XML-skema" title="XML-skema – Danish" lang="da" hreflang="da" data-title="XML-skema" data-language-autonym="Dansk" data-language-local-name="Danish" class="interlanguage-link-target"><span>Dansk</span></a></li><li class="interlanguage-link interwiki-de mw-list-item"><a href="https://de.wikipedia.org/wiki/Schemasprache_(XML)" title="Schemasprache (XML) – German" lang="de" hreflang="de" data-title="Schemasprache (XML)" data-language-autonym="Deutsch" data-language-local-name="German" class="interlanguage-link-target"><span>Deutsch</span></a></li><li class="interlanguage-link interwiki-fa mw-list-item"><a href="https://fa.wikipedia.org/wiki/%D8%B7%D8%B1%D8%AD%E2%80%8C%D9%88%D8%A7%D8%B1%D9%87_%D8%A7%DA%A9%D8%B3%E2%80%8C%D8%A7%D9%85%E2%80%8C%D8%A7%D9%84" title="طرح‌واره اکس‌ام‌ال – Persian" lang="fa" hreflang="fa" data-title="طرح‌واره اکس‌ام‌ال" data-language-autonym="فارسی" data-language-local-name="Persian" class="interlanguage-link-target"><span>فارسی</span></a></li><li class="interlanguage-link interwiki-ko mw-list-item"><a href="https://ko.wikipedia.org/wiki/XML_%EC%8A%A4%ED%82%A4%EB%A7%88" title="XML 스키마 – Korean" lang="ko" hreflang="ko" data-title="XML 스키마" data-language-autonym="한국어" data-language-local-name="Korean" class="interlanguage-link-target"><span>한국어</span></a></li><li class="interlanguage-link interwiki-hu mw-list-item"><a href="https://hu.wikipedia.org/wiki/XML-s%C3%A9ma" title="XML-séma – Hungarian" lang="hu" hreflang="hu" data-title="XML-séma" data-language-autonym="Magyar" data-language-local-name="Hungarian" class="interlanguage-link-target"><span>Magyar</span></a></li><li class="interlanguage-link interwiki-mk mw-list-item"><a href="https://mk.wikipedia.org/wiki/XML_%D1%88%D0%B5%D0%BC%D0%B0" title="XML шема – Macedonian" lang="mk" hreflang="mk" data-title="XML шема" data-language-autonym="Македонски" data-language-local-name="Macedonian" class="interlanguage-link-target"><span>Македонски</span></a></li><li class="interlanguage-link interwiki-ja mw-list-item"><a href="https://ja.wikipedia.org/wiki/%E3%82%B9%E3%82%AD%E3%83%BC%E3%83%9E%E8%A8%80%E8%AA%9E" title="スキーマ言語 – Japanese" lang="ja" hreflang="ja" data-title="スキーマ言語" data-language-autonym="日本語" data-language-local-name="Japanese" class="interlanguage-link-target"><span>日本語</span></a></li><li class="interlanguage-link interwiki-ta mw-list-item"><a href="https://ta.wikipedia.org/wiki/%E0%AE%8E%E0%AE%95%E0%AF%8D%E0%AE%9A%E0%AF%81.%E0%AE%8E%E0%AE%AE%E0%AF%8D.%E0%AE%8E%E0%AE%B2%E0%AF%8D_%E0%AE%87%E0%AE%9A%E0%AF%81%E0%AE%95%E0%AF%80%E0%AE%AE%E0%AE%BE" title="எக்சு.எம்.எல் இசுகீமா – Tamil" lang="ta" hreflang="ta" data-title="எக்சு.எம்.எல் இசுகீமா" data-language-autonym="தமிழ்" data-language-local-name="Tamil" class="interlanguage-link-target"><span>தமிழ்</span></a></li><li class="interlanguage-link interwiki-th mw-list-item"><a href="https://th.wikipedia.org/wiki/%E0%B9%80%E0%B8%84%E0%B9%89%E0%B8%B2%E0%B8%A3%E0%B9%88%E0%B8%B2%E0%B8%87%E0%B9%80%E0%B8%AD%E0%B8%81%E0%B8%8B%E0%B9%8C%E0%B9%80%E0%B8%AD%E0%B9%87%E0%B8%A1%E0%B9%81%E0%B8%AD%E0%B8%A5" title="เค้าร่างเอกซ์เอ็มแอล – Thai" lang="th" hreflang="th" data-title="เค้าร่างเอกซ์เอ็มแอล" data-language-autonym="ไทย" data-language-local-name="Thai" class="interlanguage-link-target"><span>ไทย</span></a></li><li class="interlanguage-link interwiki-uk mw-list-item"><a href="https://uk.wikipedia.org/wiki/XML_schema" title="XML schema – Ukrainian" lang="uk" hreflang="uk" data-title="XML schema" data-language-autonym="Українська" data-language-local-name="Ukrainian" class="interlanguage-link-target"><span>Українська</span></a></li><li class="interlanguage-link interwiki-zh mw-list-item"><a href="https://zh.wikipedia.org/wiki/XML_Schema%E8%AF%AD%E8%A8%80" title="XML Schema语言 – Chinese" lang="zh" hreflang="zh" data-title="XML Schema语言" data-language-autonym="中文" data-language-local-name="Chinese" class="interlanguage-link-target"><span>中文</span></a></li> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-edit wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q1043076#sitelinks-wikipedia" title="Edit interlanguage links" class="wbc-editpage">Edit links</a></span></div> </div> </div> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Namespaces"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-main" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/XML_schema" title="View the content page [c]" accesskey="c"><span>Article</span></a></li><li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="/wiki/Talk:XML_schema" rel="discussion" title="Discuss improvements to the content page [t]" accesskey="t"><span>Talk</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Change language variant" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">English</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Views"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/XML_schema"><span>Read</span></a></li><li id="ca-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=XML_schema&amp;action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=XML_schema&amp;action=history" title="Past revisions of this page [h]" accesskey="h"><span>View history</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Tools" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Tools</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">Tools</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">hide</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="More options" > <div class="vector-menu-heading"> Actions </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="/wiki/XML_schema"><span>Read</span></a></li><li id="ca-more-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=XML_schema&amp;action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=XML_schema&amp;action=history"><span>View history</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> General </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Special:WhatLinksHere/XML_schema" title="List of all English Wikipedia pages containing links to this page [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:RecentChangesLinked/XML_schema" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-upload" class="mw-list-item"><a href="/wiki/Wikipedia:File_Upload_Wizard" title="Upload files [u]" accesskey="u"><span>Upload file</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q"><span>Special pages</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=XML_schema&amp;oldid=1186666181" title="Permanent link to this revision of this page"><span>Permanent link</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=XML_schema&amp;action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-cite" class="mw-list-item"><a href="/w/index.php?title=Special:CiteThisPage&amp;page=XML_schema&amp;id=1186666181&amp;wpFormIdentifier=titleform" title="Information on how to cite this page"><span>Cite this page</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&amp;url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FXML_schema"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&amp;url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FXML_schema"><span>Download QR code</span></a></li> </ul> </div> </div> <div id="p-coll-print_export" class="vector-menu mw-portlet mw-portlet-coll-print_export" > <div class="vector-menu-heading"> Print/export </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=Special:DownloadAsPdf&amp;page=XML_schema&amp;action=show-download-screen" title="Download this page as a PDF file"><span>Download as PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=XML_schema&amp;printable=yes" title="Printable version of this page [p]" accesskey="p"><span>Printable version</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects" > <div class="vector-menu-heading"> In other projects </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q1043076" title="Structured data on this page hosted by Wikidata [g]" accesskey="g"><span>Wikidata item</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">Appearance</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">hide</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div class="mw-indicators"> </div> <div id="siteSub" class="noprint">From Wikipedia, the free encyclopedia</div> </div> <div id="contentSub"><div id="mw-content-subtitle"></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><div class="shortdescription nomobile noexcerpt noprint searchaux" style="display:none">Description of a type of XML document</div> <style data-mw-deduplicate="TemplateStyles:r1236090951">.mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}@media print{body.ns-0 .mw-parser-output .hatnote{display:none!important}}</style><div role="note" class="hatnote navigation-not-searchable">This article is about XML schemas in general. For information on the W3C-recommendation, see <a href="/wiki/XML_Schema_(W3C)" title="XML Schema (W3C)">XML Schema (W3C)</a>.</div> <style data-mw-deduplicate="TemplateStyles:r1251242444">.mw-parser-output .ambox{border:1px solid #a2a9b1;border-left:10px solid #36c;background-color:#fbfbfb;box-sizing:border-box}.mw-parser-output .ambox+link+.ambox,.mw-parser-output .ambox+link+style+.ambox,.mw-parser-output .ambox+link+link+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+style+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+link+.ambox{margin-top:-1px}html body.mediawiki .mw-parser-output .ambox.mbox-small-left{margin:4px 1em 4px 0;overflow:hidden;width:238px;border-collapse:collapse;font-size:88%;line-height:1.25em}.mw-parser-output .ambox-speedy{border-left:10px solid #b32424;background-color:#fee7e6}.mw-parser-output .ambox-delete{border-left:10px solid #b32424}.mw-parser-output .ambox-content{border-left:10px solid #f28500}.mw-parser-output .ambox-style{border-left:10px solid #fc3}.mw-parser-output .ambox-move{border-left:10px solid #9932cc}.mw-parser-output .ambox-protection{border-left:10px solid #a2a9b1}.mw-parser-output .ambox .mbox-text{border:none;padding:0.25em 0.5em;width:100%}.mw-parser-output .ambox .mbox-image{border:none;padding:2px 0 2px 0.5em;text-align:center}.mw-parser-output .ambox .mbox-imageright{border:none;padding:2px 0.5em 2px 0;text-align:center}.mw-parser-output .ambox .mbox-empty-cell{border:none;padding:0;width:1px}.mw-parser-output .ambox .mbox-image-div{width:52px}@media(min-width:720px){.mw-parser-output .ambox{margin:0 10%}}@media print{body.ns-0 .mw-parser-output .ambox{display:none!important}}</style><style data-mw-deduplicate="TemplateStyles:r1248332772">.mw-parser-output .multiple-issues-text{width:95%;margin:0.2em 0}.mw-parser-output .multiple-issues-text>.mw-collapsible-content{margin-top:0.3em}.mw-parser-output .compact-ambox .ambox{border:none;border-collapse:collapse;background-color:transparent;margin:0 0 0 1.6em!important;padding:0!important;width:auto;display:block}body.mediawiki .mw-parser-output .compact-ambox .ambox.mbox-small-left{font-size:100%;width:auto;margin:0}.mw-parser-output .compact-ambox .ambox .mbox-text{padding:0!important;margin:0!important}.mw-parser-output .compact-ambox .ambox .mbox-text-span{display:list-item;line-height:1.5em;list-style-type:disc}body.skin-minerva .mw-parser-output .multiple-issues-text>.mw-collapsible-toggle,.mw-parser-output .compact-ambox .ambox .mbox-image,.mw-parser-output .compact-ambox .ambox .mbox-imageright,.mw-parser-output .compact-ambox .ambox .mbox-empty-cell,.mw-parser-output .compact-ambox .hide-when-compact{display:none}</style><table class="box-Multiple_issues plainlinks metadata ambox ambox-content ambox-multiple_issues compact-ambox" role="presentation"><tbody><tr><td class="mbox-image"><div class="mbox-image-div"><span typeof="mw:File"><span><img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/b/b4/Ambox_important.svg/40px-Ambox_important.svg.png" decoding="async" width="40" height="40" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/b/b4/Ambox_important.svg/60px-Ambox_important.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/b/b4/Ambox_important.svg/80px-Ambox_important.svg.png 2x" data-file-width="40" data-file-height="40" /></span></span></div></td><td class="mbox-text"><div class="mbox-text-span"><div class="multiple-issues-text mw-collapsible"><b>This article has multiple issues.</b> Please help <b><a href="/wiki/Special:EditPage/XML_schema" title="Special:EditPage/XML schema">improve it</a></b> or discuss these issues on the <b><a href="/wiki/Talk:XML_schema" title="Talk:XML schema">talk page</a></b>. <small><i>(<a href="/wiki/Help:Maintenance_template_removal" title="Help:Maintenance template removal">Learn how and when to remove these messages</a>)</i></small> <div class="mw-collapsible-content"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1251242444"><table class="box-Original_research plainlinks metadata ambox ambox-content ambox-Original_research" role="presentation"><tbody><tr><td class="mbox-image"><div class="mbox-image-div"><span typeof="mw:File"><span><img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/b/b4/Ambox_important.svg/40px-Ambox_important.svg.png" decoding="async" width="40" height="40" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/b/b4/Ambox_important.svg/60px-Ambox_important.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/b/b4/Ambox_important.svg/80px-Ambox_important.svg.png 2x" data-file-width="40" data-file-height="40" /></span></span></div></td><td class="mbox-text"><div class="mbox-text-span">This article <b>possibly contains <a href="/wiki/Wikipedia:No_original_research" title="Wikipedia:No original research">original research</a></b>.<span class="hide-when-compact"> Please <a class="external text" href="https://en.wikipedia.org/w/index.php?title=XML_schema&amp;action=edit">improve it</a> by <a href="/wiki/Wikipedia:Verifiability" title="Wikipedia:Verifiability">verifying</a> the claims made and adding <a href="/wiki/Wikipedia:Citing_sources#Inline_citations" title="Wikipedia:Citing sources">inline citations</a>. Statements consisting only of original research should be removed.</span> <span class="date-container"><i>(<span class="date">March 2015</span>)</i></span><span class="hide-when-compact"><i> (<small><a href="/wiki/Help:Maintenance_template_removal" title="Help:Maintenance template removal">Learn how and when to remove this message</a></small>)</i></span></div></td></tr></tbody></table> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1251242444"><table class="box-More_citations_needed plainlinks metadata ambox ambox-content ambox-Refimprove" role="presentation"><tbody><tr><td class="mbox-image"><div class="mbox-image-div"><span typeof="mw:File"><a href="/wiki/File:Question_book-new.svg" class="mw-file-description"><img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/9/99/Question_book-new.svg/50px-Question_book-new.svg.png" decoding="async" width="50" height="39" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/9/99/Question_book-new.svg/75px-Question_book-new.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/9/99/Question_book-new.svg/100px-Question_book-new.svg.png 2x" data-file-width="512" data-file-height="399" /></a></span></div></td><td class="mbox-text"><div class="mbox-text-span">This article <b>needs additional citations for <a href="/wiki/Wikipedia:Verifiability" title="Wikipedia:Verifiability">verification</a></b>.<span class="hide-when-compact"> Please help <a href="/wiki/Special:EditPage/XML_schema" title="Special:EditPage/XML schema">improve this article</a> by <a href="/wiki/Help:Referencing_for_beginners" title="Help:Referencing for beginners">adding citations to reliable sources</a>. Unsourced material may be challenged and removed.<br /><small><span class="plainlinks"><i>Find sources:</i>&#160;<a rel="nofollow" class="external text" href="https://www.google.com/search?as_eq=wikipedia&amp;q=%22XML+schema%22">"XML schema"</a>&#160;–&#160;<a rel="nofollow" class="external text" href="https://www.google.com/search?tbm=nws&amp;q=%22XML+schema%22+-wikipedia&amp;tbs=ar:1">news</a>&#160;<b>·</b> <a rel="nofollow" class="external text" href="https://www.google.com/search?&amp;q=%22XML+schema%22&amp;tbs=bkt:s&amp;tbm=bks">newspapers</a>&#160;<b>·</b> <a rel="nofollow" class="external text" href="https://www.google.com/search?tbs=bks:1&amp;q=%22XML+schema%22+-wikipedia">books</a>&#160;<b>·</b> <a rel="nofollow" class="external text" href="https://scholar.google.com/scholar?q=%22XML+schema%22">scholar</a>&#160;<b>·</b> <a rel="nofollow" class="external text" href="https://www.jstor.org/action/doBasicSearch?Query=%22XML+schema%22&amp;acc=on&amp;wc=on">JSTOR</a></span></small></span> <span class="date-container"><i>(<span class="date">March 2015</span>)</i></span><span class="hide-when-compact"><i> (<small><a href="/wiki/Help:Maintenance_template_removal" title="Help:Maintenance template removal">Learn how and when to remove this message</a></small>)</i></span></div></td></tr></tbody></table> </div> </div><span class="hide-when-compact"><i> (<small><a href="/wiki/Help:Maintenance_template_removal" title="Help:Maintenance template removal">Learn how and when to remove this message</a></small>)</i></span></div></td></tr></tbody></table> <p>An <b>XML schema</b> is a description of a type of <a href="/wiki/Extensible_Markup_Language" class="mw-redirect" title="Extensible Markup Language">XML</a> document, typically expressed in terms of constraints on the structure and content of documents of that type, above and beyond the basic syntactical constraints imposed by XML itself. These constraints are generally expressed using some combination of grammatical rules governing the order of elements, <a href="/wiki/Boolean_predicates" class="mw-redirect" title="Boolean predicates">Boolean predicates</a> that the content must satisfy, data types governing the content of elements and attributes, and more specialized rules such as <a href="/wiki/Uniqueness_quantification" title="Uniqueness quantification">uniqueness</a> and <a href="/wiki/Referential_integrity" title="Referential integrity">referential integrity</a> constraints. </p><p>There are languages developed specifically to express XML schemas. The <a href="/wiki/Document_type_definition" title="Document type definition">document type definition</a> (DTD) language, which is native to the XML specification, is a schema language that is of relatively limited capability, but that also has other uses in XML aside from the expression of schemas. Two more expressive XML schema languages in widespread use are <a href="/wiki/XML_Schema_(W3C)" title="XML Schema (W3C)">XML Schema</a> (with a capital <i>S</i>) and <a href="/wiki/RELAX_NG" title="RELAX NG">RELAX NG</a>. </p><p>The mechanism for associating an XML document with a schema varies according to the schema language. The association may be achieved via markup within the XML document itself, or via some external means. </p><p>The XML Schema Definition is commonly referred to as XSD. </p> <meta property="mw:PageProp/toc" /> <div class="mw-heading mw-heading2"><h2 id="Validation">Validation</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=XML_schema&amp;action=edit&amp;section=1" title="Edit section: Validation"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The process of checking to see if a XML document conforms to a schema is called <a href="/wiki/XML_validation" title="XML validation">validation</a>, which is separate from XML's core concept of syntactic <a href="/wiki/Well-formed_document" title="Well-formed document">well-formedness</a>. All XML documents must be well-formed, but it is not required that a document be valid unless the XML parser is "validating", in which case the document is also checked for conformance with its associated schema. DTD-validating <a href="/wiki/Parsing" title="Parsing">parsers</a> are most common, but some support XML Schema or RELAX NG as well. </p><p>Validation of an instance document against a schema can be regarded as a conceptually separate operation from XML parsing. In practice, however, many schema validators are integrated with an XML parser. </p> <div class="mw-heading mw-heading2"><h2 id="Languages">Languages</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=XML_schema&amp;action=edit&amp;section=2" title="Edit section: Languages"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>There are several different languages available for specifying an XML schema. Each language has its strengths and weaknesses. </p><p>The primary purpose of a schema language is to specify what the structure of an XML document can be. This means which elements can reside in which other elements, which attributes are and are not legal to have on a particular element, and so forth. A schema is analogous to a <a href="/wiki/Grammar" title="Grammar">grammar</a> for a language; a schema defines what the vocabulary for the language may be and what a valid "sentence" is. </p><p>There are historic and current XML schema languages: </p> <table class="wikitable"> <tbody><tr> <th>Language </th> <th>Abbrev. </th> <th>Versions </th> <th>Authority </th></tr> <tr> <td><a href="/wiki/CLiX_(markup)" title="CLiX (markup)">Constraint Language in XML</a> </td> <td>CLiX </td> <td>2005 </td> <td>Independent<sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">&#91;</span>1<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td>Document Content Description facility for XML, an <a href="/wiki/Resource_Description_Framework" title="Resource Description Framework">RDF</a> framework<sup id="cite_ref-dcd_2-0" class="reference"><a href="#cite_note-dcd-2"><span class="cite-bracket">&#91;</span>2<span class="cite-bracket">&#93;</span></a></sup> </td> <td>DCD </td> <td>v1.0 (1998) </td> <td>W3C (Note) </td></tr> <tr> <td><a href="/wiki/Document_Definition_Markup_Language" title="Document Definition Markup Language">Document Definition Markup Language</a> </td> <td>DDML </td> <td>v0 (1999) </td> <td>W3C (Note) </td></tr> <tr> <td><a href="/wiki/Document_Structure_Description" title="Document Structure Description">Document Structure Description</a> </td> <td>DSD </td> <td>2002, 2005 </td> <td>BRICS (defunct) </td></tr> <tr> <td rowspan="2"><a href="/wiki/Document_Type_Definition" class="mw-redirect" title="Document Type Definition">Document Type Definition</a> </td> <td rowspan="2">DTD </td> <td>1986 (SGML) </td> <td>ISO<sup id="cite_ref-jtc1sc34_3-0" class="reference"><a href="#cite_note-jtc1sc34-3"><span class="cite-bracket">&#91;</span>3<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td>2008 (XML) </td> <td>ISO/IEC<sup id="cite_ref-jtc1sc34_3-1" class="reference"><a href="#cite_note-jtc1sc34-3"><span class="cite-bracket">&#91;</span>3<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td><a href="/wiki/Namespace_Routing_Language" title="Namespace Routing Language">Namespace Routing Language</a> </td> <td>NRL </td> <td>2003 </td> <td>Independent<sup id="cite_ref-4" class="reference"><a href="#cite_note-4"><span class="cite-bracket">&#91;</span>4<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td><a href="/wiki/Namespace-based_Validation_Dispatching_Language" title="Namespace-based Validation Dispatching Language">Namespace-based Validation Dispatching Language</a> </td> <td>NVDL </td> <td>2006 </td> <td>ISO/IEC<sup id="cite_ref-freeISO_5-0" class="reference"><a href="#cite_note-freeISO-5"><span class="cite-bracket">&#91;</span>5<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td><a href="/wiki/OASIS_CAM" class="mw-redirect" title="OASIS CAM">Content Assembly Mechanism</a> </td> <td>CAM </td> <td>2007 </td> <td>OASIS </td></tr> <tr> <td rowspan="2"><a href="/wiki/RELAX_NG" title="RELAX NG">REgular LAnguage for XML Next Generation</a> </td> <td rowspan="2">RELAX NG, RelaxNG </td> <td>2001,<sup id="cite_ref-6" class="reference"><a href="#cite_note-6"><span class="cite-bracket">&#91;</span>6<span class="cite-bracket">&#93;</span></a></sup> Compact Syntax (2002)<sup id="cite_ref-7" class="reference"><a href="#cite_note-7"><span class="cite-bracket">&#91;</span>7<span class="cite-bracket">&#93;</span></a></sup> </td> <td>OASIS </td></tr> <tr> <td>v1 (2003), v1 Compact Syntax (2006), v2 (2008) </td> <td>ISO/IEC<sup id="cite_ref-freeISO_5-1" class="reference"><a href="#cite_note-freeISO-5"><span class="cite-bracket">&#91;</span>5<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td><a href="/wiki/Schema_for_Object-Oriented_XML" title="Schema for Object-Oriented XML">Schema for Object-Oriented XML</a> </td> <td>SOX </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td></tr> <tr> <td><a href="/wiki/Schematron" title="Schematron">Schematron</a> </td> <td data-sort-value="" style="background: var(--background-color-interactive, #ececec); color: var(--color-base, inherit); vertical-align: middle; text-align: center;" class="table-na">— </td> <td>2006, 2010, 2016, 2020 </td> <td>ISO/IEC<sup id="cite_ref-jtc1sc34_3-2" class="reference"><a href="#cite_note-jtc1sc34-3"><span class="cite-bracket">&#91;</span>3<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td><a href="/wiki/XDR_Schema" title="XDR Schema">XML-Data Reduced</a> </td> <td>XDR </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td></tr> <tr> <td>ASN.1 <a href="/wiki/XML_Encoding_Rules" class="mw-redirect" title="XML Encoding Rules">XML Encoding Rules</a> </td> <td>XER </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td> <td style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center;" class="table-Un­known">? </td></tr> <tr> <td><a href="/wiki/XML_Schema_(W3C)" title="XML Schema (W3C)">XML Schema</a> </td> <td>WXS, XSD </td> <td>1.0 (2004), 1.1 (2012) </td> <td>W3C </td></tr></tbody></table> <p>The main ones (see also the <a href="/wiki/Document_Schema_Definition_Languages" title="Document Schema Definition Languages">ISO 19757's endorsed languages</a>) are described below. </p><p>Though there are a number of schema languages available, the primary three languages are <a href="/wiki/Document_Type_Definition" class="mw-redirect" title="Document Type Definition">Document Type Definitions</a>, <a href="/wiki/XML_Schema_(W3C)" title="XML Schema (W3C)">W3C XML Schema</a>, and <a href="/wiki/RELAX_NG" title="RELAX NG">RELAX NG</a>. Each language has its own advantages and disadvantages. </p> <div class="mw-heading mw-heading3"><h3 id="Document_Type_Definitions">Document Type Definitions</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=XML_schema&amp;action=edit&amp;section=3" title="Edit section: Document Type Definitions"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236090951"><div role="note" class="hatnote navigation-not-searchable">Main article: <a href="/wiki/Document_Type_Definition" class="mw-redirect" title="Document Type Definition">Document Type Definition</a></div> <div class="mw-heading mw-heading4"><h4 id="Tool_support">Tool support</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=XML_schema&amp;action=edit&amp;section=4" title="Edit section: Tool support"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>DTDs are perhaps the most widely supported schema language for XML. Because DTDs are one of the earliest schema languages for XML, defined before XML even had namespace support, they are widely supported. Internal DTDs are often supported in XML processors; external DTDs are less often supported, but only slightly. Most large XML parsers, ones that support multiple XML technologies, will provide support for DTDs as well. </p> <div class="mw-heading mw-heading3"><h3 id="W3C_XML_Schema">W3C XML Schema</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=XML_schema&amp;action=edit&amp;section=5" title="Edit section: W3C XML Schema"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236090951"><div role="note" class="hatnote navigation-not-searchable">Main article: <a href="/wiki/XML_Schema_(W3C)" title="XML Schema (W3C)">XML Schema (W3C)</a></div> <div class="mw-heading mw-heading4"><h4 id="Advantages_over_DTDs">Advantages over DTDs</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=XML_schema&amp;action=edit&amp;section=6" title="Edit section: Advantages over DTDs"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Features available in XSD that are missing from DTDs include: </p> <ul><li>Names of elements and attributes are namespace-aware</li> <li>Constraints ("simple types") can be defined for the textual content of elements and attributes, for example to specify that they are numeric or contain dates. A wide repertoire of simple types are provided as standard, and additional user-defined types can be derived from these, for example by specifying ranges of values, regular expressions, or by enumerating the permitted values.</li> <li>Facilities for defining uniqueness constraints and referential integrity are more powerful: unlike the ID and IDREF constraints in DTDs, they can be scoped to any part of a document, can be of any data type, can apply to element as well as attribute content, and can be multi-part (for example the combination of first name and last name must be unique).</li> <li>Many requirements that are traditionally handled using parameter entities in DTDs have explicit support in XSD: examples include substitution groups, which allow a single name (such as "block" or "inline") to refer to a whole class of elements; complex types, which allow the same content model to be shared (or adapted by restriction or extension) by multiple elements; and model groups and attribute groups, which allow common parts of component models to be defined in one place and reused.</li> <li>XSD 1.1 adds the ability to define arbitrary assertions (using XPath expressions) as constraints on element content.</li></ul> <p>XSD schemas are conventionally written as XML documents, so familiar editing and transformation tools can be used. </p><p>As well as validation, XSD allows XML instances to be annotated with type information (the <a href="/wiki/PSVI" class="mw-redirect" title="PSVI">Post-Schema-Validation Infoset (PSVI)</a>) which is designed to make manipulation of the XML instance easier in application programs. This may be by mapping the XSD-defined types to types in a programming language such as Java ("data binding") or by enriching the type system of XML processing languages such as XSLT and XQuery (known as "schema-awareness"). </p> <div class="mw-heading mw-heading4"><h4 id="Commonality_with_RELAX_NG">Commonality with RELAX NG</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=XML_schema&amp;action=edit&amp;section=7" title="Edit section: Commonality with RELAX NG"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>RELAX NG and W3C XML Schema allow for similar mechanisms of specificity. Both allow for a degree of modularity in their languages, including, for example, splitting the schema into multiple files. And both of them are, or can be, defined in<sup class="noprint Inline-Template" style="margin-left:0.1em; white-space:nowrap;">&#91;<i><a href="/wiki/Wikipedia:Please_clarify" title="Wikipedia:Please clarify"><span title="The text near this tag may need clarification or removal of jargon. (July 2015)">clarification needed</span></a></i>&#93;</sup> an XML language. </p> <div class="mw-heading mw-heading4"><h4 id="Advantages_over_RELAX_NG">Advantages over RELAX NG</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=XML_schema&amp;action=edit&amp;section=8" title="Edit section: Advantages over RELAX NG"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236090951"><div role="note" class="hatnote navigation-not-searchable">See also: <a href="/wiki/XML_Schema_(W3C)#Criticism" title="XML Schema (W3C)">XML Schema (W3C) §&#160;Criticism</a></div> <p>RELAX NG does not have any analog to <a href="/wiki/PSVI" class="mw-redirect" title="PSVI">PSVI</a>. Unlike W3C XML Schema, RELAX NG was designed so that validation and augmentation (adding type information and default values) are separate. </p><p>W3C XML Schema has a formal mechanism for attaching a schema to an XML document, while RELAX NG intentionally avoids such mechanisms for security and interoperability reasons. </p><p>RELAX NG has no ability to apply default attribute data to an element's list of attributes (i.e., changing the XML info set), while W3C XML Schema does. Again, this design is intentional and is to separate validation and augmentation.<sup id="cite_ref-8" class="reference"><a href="#cite_note-8"><span class="cite-bracket">&#91;</span>8<span class="cite-bracket">&#93;</span></a></sup> </p><p>W3C XML Schema has a rich "simple type" system built-in (xs:number, xs:date, etc., plus derivation of custom types), while RELAX NG has an extremely simplistic one because it is meant to use type libraries developed independently of RELAX NG, rather than grow its own. This is seen by some as a disadvantage. In practice it is common for a RELAX NG schema to use the predefined "simple types" and "restrictions" (pattern, maxLength, etc.) of W3C XML Schema. </p><p>In W3C XML Schema a specific number or range of repetitions of patterns can be expressed whereas it is practically not possible to specify at all in RELAX NG (&lt;oneOrMore&gt; or &lt;zeroOrMore&gt;). </p> <div class="mw-heading mw-heading4"><h4 id="Disadvantages">Disadvantages</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=XML_schema&amp;action=edit&amp;section=9" title="Edit section: Disadvantages"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>W3C XML Schema is complex and hard to learn, although that is partially because it tries to do more than mere validation (see <a href="/wiki/PSVI" class="mw-redirect" title="PSVI">PSVI</a>). </p><p>Although being written in XML is an advantage, it is also a disadvantage in some ways. The W3C XML Schema language, in particular, can be quite verbose, while a DTD can be terse and relatively easily editable. </p><p>Likewise, WXS's formal mechanism for associating a document with a schema can pose a potential security problem. For WXS validators that will follow a <a href="/wiki/URI" class="mw-redirect" title="URI">URI</a> to an arbitrary online location, there is the potential for reading something malicious from the other side of the stream.<sup id="cite_ref-clark_9-0" class="reference"><a href="#cite_note-clark-9"><span class="cite-bracket">&#91;</span>9<span class="cite-bracket">&#93;</span></a></sup> </p><p>W3C XML Schema does not implement most of the DTD ability to provide data elements to a document. </p><p>Although W3C XML Schema's ability to add default attributes to elements is an advantage, it is a disadvantage in some ways as well. It means that an XML file may not be usable in the absence of its schema, even if the document would validate against that schema. In effect, all users of such an XML document must also implement the W3C XML Schema specification, thus ruling out minimalist or older XML parsers. It can also slow down the processing of the document, as the processor must potentially download and process a second XML file (the schema); however, a schema would normally then be cached, so the cost comes only on the first use. </p> <div class="mw-heading mw-heading4"><h4 id="Tool_Support_2">Tool Support</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=XML_schema&amp;action=edit&amp;section=10" title="Edit section: Tool Support"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>WXS support exists in a number of large XML parsing packages. <a href="/wiki/Apache_Xerces" title="Apache Xerces">Xerces</a> and the <a href="/wiki/.NET_Framework" title=".NET Framework">.NET Framework</a>'s <a href="/wiki/Base_Class_Library" class="mw-redirect" title="Base Class Library">Base Class Library</a> both provide support for WXS validation. </p> <div class="mw-heading mw-heading3"><h3 id="RELAX_NG">RELAX NG</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=XML_schema&amp;action=edit&amp;section=11" title="Edit section: RELAX NG"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236090951"><div role="note" class="hatnote navigation-not-searchable">Main article: <a href="/wiki/RELAX_NG" title="RELAX NG">RELAX NG</a></div> <p>RELAX NG provides for most of the advantages that W3C XML Schema does over DTDs. </p> <div class="mw-heading mw-heading4"><h4 id="Advantages_over_W3C_XML_Schema">Advantages over W3C XML Schema</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=XML_schema&amp;action=edit&amp;section=12" title="Edit section: Advantages over W3C XML Schema"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>While the language of RELAX NG can be written in XML, it also has an equivalent form that is much more like a DTD, but with greater specifying power. This form is known as the compact syntax. Tools can easily convert between these forms with no loss of features or even commenting. Even arbitrary elements specified between RELAX NG XML elements can be converted into the compact form. </p><p>RELAX NG provides very strong support for unordered content. That is, it allows the schema to state that a sequence of patterns may appear in any order. </p><p>RELAX NG also allows for non-deterministic content models. What this means is that RELAX NG allows the specification of a sequence like the following: </p> <div class="mw-highlight mw-highlight-lang-xml mw-content-ltr" dir="ltr"><pre><span></span><span class="nt">&lt;zeroOrMore&gt;</span> <span class="w"> </span><span class="nt">&lt;ref</span><span class="w"> </span><span class="na">name=</span><span class="s">&quot;odd&quot;</span><span class="w"> </span><span class="nt">/&gt;</span> <span class="w"> </span><span class="nt">&lt;ref</span><span class="w"> </span><span class="na">name=</span><span class="s">&quot;even&quot;</span><span class="w"> </span><span class="nt">/&gt;</span> <span class="nt">&lt;/zeroOrMore&gt;</span> <span class="nt">&lt;optional&gt;</span> <span class="w"> </span><span class="nt">&lt;ref</span><span class="w"> </span><span class="na">name=</span><span class="s">&quot;odd&quot;</span><span class="w"> </span><span class="nt">/&gt;</span> <span class="nt">&lt;/optional&gt;</span> </pre></div> <p>When the validator encounters something that matches the "odd" pattern, it is unknown whether this is the optional last "odd" reference or simply one in the zeroOrMore sequence without looking ahead at the data. RELAX NG allows this kind of specification. W3C XML Schema requires all of its sequences to be fully deterministic, so mechanisms like the above must be either specified in a different way or omitted altogether. </p><p>RELAX NG allows attributes to be treated as elements in content models. In particular, this means that one can provide the following: </p> <div class="mw-highlight mw-highlight-lang-xml mw-content-ltr" dir="ltr"><pre><span></span><span class="nt">&lt;element</span><span class="w"> </span><span class="na">name=</span><span class="s">&quot;some_element&quot;</span><span class="nt">&gt;</span> <span class="w"> </span><span class="nt">&lt;choice&gt;</span> <span class="w"> </span><span class="nt">&lt;attribute</span><span class="w"> </span><span class="na">name=</span><span class="s">&quot;has_name&quot;</span><span class="nt">&gt;</span> <span class="w"> </span><span class="nt">&lt;value&gt;</span>false<span class="nt">&lt;/value&gt;</span> <span class="w"> </span><span class="nt">&lt;/attribute&gt;</span> <span class="w"> </span><span class="nt">&lt;group&gt;</span> <span class="w"> </span><span class="nt">&lt;attribute</span><span class="w"> </span><span class="na">name=</span><span class="s">&quot;has_name&quot;</span><span class="nt">&gt;</span> <span class="w"> </span><span class="nt">&lt;value&gt;</span>true<span class="nt">&lt;/value&gt;</span> <span class="w"> </span><span class="nt">&lt;/attribute&gt;</span> <span class="w"> </span><span class="nt">&lt;element</span><span class="w"> </span><span class="na">name=</span><span class="s">&quot;name&quot;</span><span class="nt">&gt;&lt;text</span><span class="w"> </span><span class="nt">/&gt;&lt;/element&gt;</span> <span class="w"> </span><span class="nt">&lt;/group&gt;</span> <span class="w"> </span><span class="nt">&lt;/choice&gt;</span> <span class="nt">&lt;/element&gt;</span> </pre></div> <p>This block states that the element "some_element" must have an attribute named "has_name". This attribute can only take true or false as values, and if it is true, the first child element of the element must be "name", which stores text. If "name" did not need to be the first element, then the choice could be wrapped in an "interleave" element along with other elements. The order of the specification of attributes in RELAX NG has no meaning, so this block need not be the first block in the element definition. </p><p>W3C XML Schema cannot specify such a dependency between the content of an attribute and child elements. </p><p>RELAX NG's specification only lists two built-in types (string and token), but it allows for the definition of many more. In theory, the lack of a specific list allows a processor to support data types that are very problem-domain specific. </p><p>Most RELAX NG schemas can be algorithmically converted into W3C XML Schemas and even DTDs (except when using RELAX NG features not supported by those languages, as above). The reverse is not true. As such, RELAX NG can be used as a normative version of the schema, and the user can convert it to other forms for tools that do not support RELAX NG. </p> <div class="mw-heading mw-heading4"><h4 id="Disadvantages_2">Disadvantages</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=XML_schema&amp;action=edit&amp;section=13" title="Edit section: Disadvantages"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Most of RELAX NG's disadvantages are covered under the section on W3C XML Schema's advantages over RELAX NG. </p><p>Though RELAX NG's ability to support user-defined data types is useful, it comes at the disadvantage of only having two data types that the user can rely upon. Which, in theory, means that using a RELAX NG schema across multiple validators requires either providing those user-defined data types to that validator or using only the two basic types. In practice, however, most RELAX NG processors support the W3C XML Schema set of data types. </p> <div class="mw-heading mw-heading3"><h3 id="Schematron">Schematron</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=XML_schema&amp;action=edit&amp;section=14" title="Edit section: Schematron"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236090951"><div role="note" class="hatnote navigation-not-searchable">Main article: <a href="/wiki/Schematron" title="Schematron">Schematron</a></div> <p>Schematron is a fairly unusual schema language. Unlike the main three, it defines an XML file's syntax as a list of <a href="/wiki/XPath" title="XPath">XPath</a>-based rules. If the document passes these rules, then it is valid. </p> <div class="mw-heading mw-heading4"><h4 id="Advantages">Advantages</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=XML_schema&amp;action=edit&amp;section=15" title="Edit section: Advantages"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Because of its rule-based nature, Schematron's specificity is very strong. It can require that the content of an element be controlled by one of its siblings. It can also request or require that the root element, regardless of what element that happens to be, have specific attributes. It can even specify required relationships between multiple XML files. </p> <div class="mw-heading mw-heading4"><h4 id="Disadvantages_3">Disadvantages</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=XML_schema&amp;action=edit&amp;section=16" title="Edit section: Disadvantages"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>While Schematron is good at relational constructs, its ability to specify the basic structure of a document, that is, which elements can go where, results in a very verbose schema. </p><p>The typical way to solve this is to combine Schematron with RELAX NG or W3C XML Schema. There are several schema processors available for both languages that support this combined form. This allows Schematron rules to specify additional constraints to the structure defined by W3C XML Schema or RELAX NG. </p> <div class="mw-heading mw-heading4"><h4 id="Tool_Support_3">Tool Support</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=XML_schema&amp;action=edit&amp;section=17" title="Edit section: Tool Support"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Schematron's reference implementation is actually an <a href="/wiki/XSLT" title="XSLT">XSLT</a> transformation that transforms the Schematron document into an XSLT that validates the XML file. As such, Schematron's potential toolset is any XSLT processor, though <a href="/wiki/Libxml2" title="Libxml2">libxml2</a> provides an implementation that does not require XSLT. <a href="/wiki/Sun_Microsystems" title="Sun Microsystems">Sun Microsystems</a>'s Multiple Schema Validator for <a href="/wiki/Java_(programming_language)" title="Java (programming language)">Java</a> has an add-on that allows it to validate RELAX NG schemas that have embedded Schematron rules. </p> <div class="mw-heading mw-heading3"><h3 id="Namespace_Routing_Language_(NRL)"><span id="Namespace_Routing_Language_.28NRL.29"></span>Namespace Routing Language (NRL)</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=XML_schema&amp;action=edit&amp;section=18" title="Edit section: Namespace Routing Language (NRL)"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236090951"><div role="note" class="hatnote navigation-not-searchable">Main article: <a href="/wiki/Namespace_Routing_Language" title="Namespace Routing Language">Namespace Routing Language</a></div> <p>This is not technically a schema language. Its sole purpose is to direct parts of documents to individual schemas based on the namespace of the encountered elements. An NRL is merely a list of <a href="/wiki/Xml_namespace" class="mw-redirect" title="Xml namespace">XML namespaces</a> and a path to a schema that each corresponds to. This allows each schema to be concerned with only its own language definition, and the NRL file routes the schema validator to the correct schema file based on the namespace of that element. </p><p>This XML format is schema-language agnostic and works for just about any schema language. </p> <div class="mw-heading mw-heading2"><h2 id="Terminology">Terminology</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=XML_schema&amp;action=edit&amp;section=19" title="Edit section: Terminology"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Capitalization in the <i>schema</i> word: there is some confusion as to when to use the capitalized spelling "Schema" and when to use the lowercase spelling. The lowercase form is a generic term and may refer to any type of schema, including DTD, XML Schema (aka XSD), RELAX NG, or others, and should always be written using lowercase except when appearing at the start of a sentence. The form "Schema" (capitalized) in common use in the XML community always refers to <a href="/wiki/XML_Schema_(W3C)" title="XML Schema (W3C)">W3C XML Schema</a>. </p> <div class="mw-heading mw-heading2"><h2 id="Schema_authoring_choices">Schema authoring choices</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=XML_schema&amp;action=edit&amp;section=20" title="Edit section: Schema authoring choices"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The focus of the <i>schema</i> definition is structure and some semantics of documents. However, schema design, just like design of databases, computer program, and other formal constructs, also involve many considerations of style, convention, and readability. Extensive discussions of schema design issues can be found in (for example) Maler (1995)<sup id="cite_ref-M95_10-0" class="reference"><a href="#cite_note-M95-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup> and DeRose (1997).<sup id="cite_ref-D97_11-0" class="reference"><a href="#cite_note-D97-11"><span class="cite-bracket">&#91;</span>11<span class="cite-bracket">&#93;</span></a></sup> </p> <dl><dt>Consistency</dt> <dd>One obvious consideration is that tags and attribute names should use consistent conventions. For example, it would be unusual to create a schema where some element names are <a href="/wiki/CamelCase" class="mw-redirect" title="CamelCase">camelCase</a> but others use underscores to separate parts of names, or other conventions.</dd></dl> <dl><dt>Clear and mnemonic names</dt> <dd>As in other formal languages, good choices of names can help understanding, even though the names per se have no formal significance. Naming the appropriate tag "chapter" rather than "tag37" is a help to the reader. At the same time, this brings in issues of the choice of natural language. A schema to be used for <a href="/wiki/Irish_Gaelic" class="mw-redirect" title="Irish Gaelic">Irish Gaelic</a> documents will probably use the same language for element and attribute names, since that will be the language common to editors and readers.</dd></dl> <dl><dt><i>Tag</i> vs <i>attribute</i> choice</dt> <dd>Some information can "fit" readily in either an element or an attribute. Because attributes cannot contain elements in XML, this question only arises for components that have no further sub-structure that XML needs to be aware of (attributes do support multiple tokens, such as multiple IDREF values, which can be considered a slight exception). Attributes typically represent information associated with the entirety of the element on which they occur, while sub-elements introduce a new scope of their own.</dd></dl> <dl><dt>Text content</dt> <dd>Some XML schemas, particularly ones that represent various kinds of <a href="/wiki/Documents" class="mw-redirect" title="Documents">documents</a>, ensure that all "text content" (roughly, any part that one would speak if reading the document aloud) occurs as text, and never in attributes. However, there are many edge cases where this does not hold: First, there are XML documents which do not involve "natural language" at all, or only minimally, such as for telemetry, creation of vector graphics or mathematical formulae, and so on. Second, information like stage directions in plays, verse numbers in Classical and Scriptural works, and correction or normalization of spelling in transcribed works, all pose issues of interpretation that schema designers for such genres must consider.</dd></dl> <dl><dt>Schema reuse</dt> <dd>A new <i>XML schema</i> can be developed from scratch, or can reuse some fragments of other <i>XML schemas</i>. All schema languages offer some tools (for example, <code>include</code> and modularization control over namespaces) and recommend reuse where practical. Various parts of the extensive and sophisticated <a href="/wiki/Text_Encoding_Initiative" title="Text Encoding Initiative">Text Encoding Initiative</a> schemas are also re-used in an extraordinary variety of other schemas.</dd></dl> <dl><dt>Semantic vs syntactic<sup class="noprint Inline-Template" style="white-space:nowrap;">&#91;<i><a href="/wiki/Wikipedia:Accuracy_dispute#Disputed_statement" title="Wikipedia:Accuracy dispute"><span title="The material near this tag is possibly inaccurate or nonfactual. (May 2015)">dubious</span></a>&#32;&#8211; <a href="/wiki/Talk:XML_schema#Dubious" title="Talk:XML schema">discuss</a></i>&#93;</sup></dt> <dd>Except for a RDF-related one, no <i>schema language</i> express formally semantic, only structure and data-types. Despite being the ideal, the inclusion of RDF assumptions is very poor and is not a recommendation in the <i>schema development</i> frameworks.</dd></dl> <div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=XML_schema&amp;action=edit&amp;section=21" title="Edit section: See also"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><a href="/wiki/Data_structure" title="Data structure">Data structure</a></li> <li><a href="/wiki/List_of_XML_schemas" class="mw-redirect" title="List of XML schemas">List of XML schemas</a></li> <li><a href="/wiki/Schema_(disambiguation)" class="mw-redirect mw-disambig" title="Schema (disambiguation)">Schema (disambiguation)</a> (for other uses of the term)</li> <li><a href="/wiki/Information_architecture" title="Information architecture">Structuring information</a></li> <li><a href="/wiki/XML_Information_Set" title="XML Information Set">XML Information Set</a></li> <li><a href="/wiki/XML_log" title="XML log">XML log</a></li></ul> <p>Languages: </p> <ul><li><a href="/wiki/CLiX_(markup)" title="CLiX (markup)">CLiX</a></li> <li><a href="/wiki/Document_Structure_Description" title="Document Structure Description">Document Structure Description</a></li> <li><a href="/wiki/Document_Type_Definition" class="mw-redirect" title="Document Type Definition">Document Type Definition</a></li> <li><a href="/wiki/Namespace_Routing_Language" title="Namespace Routing Language">Namespace Routing Language</a></li> <li><a href="/wiki/Namespace-based_Validation_Dispatching_Language" title="Namespace-based Validation Dispatching Language">Namespace-based Validation Dispatching Language</a></li> <li><a href="/wiki/OASIS_CAM" class="mw-redirect" title="OASIS CAM">OASIS CAM</a></li> <li><a href="/wiki/RELAX_NG" title="RELAX NG">RELAX NG</a></li> <li><a href="/wiki/Schematron" title="Schematron">Schematron</a></li> <li><a href="/wiki/W3C_XML_Schema" class="mw-redirect" title="W3C XML Schema">W3C XML Schema</a></li></ul> <div class="mw-heading mw-heading2"><h2 id="References">References</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=XML_schema&amp;action=edit&amp;section=22" title="Edit section: References"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <style data-mw-deduplicate="TemplateStyles:r1239543626">.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}</style><div class="reflist"> <div class="mw-references-wrap mw-references-columns"><ol class="references"> <li id="cite_note-1"><span class="mw-cite-backlink"><b><a href="#cite_ref-1">^</a></b></span> <span class="reference-text"><style data-mw-deduplicate="TemplateStyles:r1238218222">.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/6/65/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/d/d6/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/a/aa/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/4/4c/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}</style><cite id="CITEREFMarconiNentwich2004" class="citation web cs1">Marconi, Michael; Nentwich, Christian, eds. (31 January 2004). <a rel="nofollow" class="external text" href="http://www.clixml.info/clix/1.0/">"CLiX Language Specification Version 1.0"</a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=CLiX+Language+Specification+Version+1.0&amp;rft.date=2004-01-31&amp;rft_id=http%3A%2F%2Fwww.clixml.info%2Fclix%2F1.0%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AXML+schema" class="Z3988"></span></span> </li> <li id="cite_note-dcd-2"><span class="mw-cite-backlink"><b><a href="#cite_ref-dcd_2-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFBrayFrankstonMalhotra1998" class="citation web cs1">Bray, Tim; Frankston, Charles; Malhotra, Ashok, eds. (31 July 1998). <a rel="nofollow" class="external text" href="http://www.w3.org/TR/NOTE-dcd">"Document Content Description for XML: Submission to the World Wide Web Consortium"</a>. World Wide Web Consortium.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Document+Content+Description+for+XML%3A+Submission+to+the+World+Wide+Web+Consortium&amp;rft.pub=World+Wide+Web+Consortium&amp;rft.date=1998-07-31&amp;rft_id=http%3A%2F%2Fwww.w3.org%2FTR%2FNOTE-dcd&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AXML+schema" class="Z3988"></span></span> </li> <li id="cite_note-jtc1sc34-3"><span class="mw-cite-backlink">^ <a href="#cite_ref-jtc1sc34_3-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-jtc1sc34_3-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-jtc1sc34_3-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_tc_browse.htm?commid=45374&amp;published=on">"Standards and projects under the direct responsibility of ISO/IEC JTC 1/SC 34 Secretariat"</a>. <i>ISO Standards catalogue</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=ISO+Standards+catalogue&amp;rft.atitle=Standards+and+projects+under+the+direct+responsibility+of+ISO%2FIEC+JTC+1%2FSC+34+Secretariat&amp;rft_id=http%3A%2F%2Fwww.iso.org%2Fiso%2Fiso_catalogue%2Fcatalogue_tc%2Fcatalogue_tc_browse.htm%3Fcommid%3D45374%26published%3Don&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AXML+schema" class="Z3988"></span></span> </li> <li id="cite_note-4"><span class="mw-cite-backlink"><b><a href="#cite_ref-4">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFClark2003" class="citation web cs1">Clark, James (13 June 2003). <a rel="nofollow" class="external text" href="http://thaiopensource.com/relaxng/nrl.html">"Namespace Routing Language (NRL)"</a>. Thai Open Source Software Center, Ltd.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Namespace+Routing+Language+%28NRL%29&amp;rft.pub=Thai+Open+Source+Software+Center%2C+Ltd.&amp;rft.date=2003-06-13&amp;rft.aulast=Clark&amp;rft.aufirst=James&amp;rft_id=http%3A%2F%2Fthaiopensource.com%2Frelaxng%2Fnrl.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AXML+schema" class="Z3988"></span></span> </li> <li id="cite_note-freeISO-5"><span class="mw-cite-backlink">^ <a href="#cite_ref-freeISO_5-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-freeISO_5-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://standards.iso.org/ittf/PubliclyAvailableStandards/index.html">"Freely Available Standards"</a>. ISO.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Freely+Available+Standards&amp;rft.pub=ISO&amp;rft_id=http%3A%2F%2Fstandards.iso.org%2Fittf%2FPubliclyAvailableStandards%2Findex.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AXML+schema" class="Z3988"></span></span> </li> <li id="cite_note-6"><span class="mw-cite-backlink"><b><a href="#cite_ref-6">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFClarkMakoto2001" class="citation web cs1">Clark, James; Makoto, MURATA, eds. (3 December 2001). <a rel="nofollow" class="external text" href="https://www.oasis-open.org/committees/relax-ng/spec-20011203.html">"RELAX NG Specification"</a>. <i>OASIS</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=OASIS&amp;rft.atitle=RELAX+NG+Specification&amp;rft.date=2001-12-03&amp;rft_id=https%3A%2F%2Fwww.oasis-open.org%2Fcommittees%2Frelax-ng%2Fspec-20011203.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AXML+schema" class="Z3988"></span></span> </li> <li id="cite_note-7"><span class="mw-cite-backlink"><b><a href="#cite_ref-7">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFClark2002" class="citation web cs1">Clark, James, ed. (21 November 2002). <a rel="nofollow" class="external text" href="https://www.oasis-open.org/committees/relax-ng/compact-20021121.html">"RELAX NG Compact Syntax"</a>. <i>OASIS</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=OASIS&amp;rft.atitle=RELAX+NG+Compact+Syntax&amp;rft.date=2002-11-21&amp;rft_id=https%3A%2F%2Fwww.oasis-open.org%2Fcommittees%2Frelax-ng%2Fcompact-20021121.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AXML+schema" class="Z3988"></span></span> </li> <li id="cite_note-8"><span class="mw-cite-backlink"><b><a href="#cite_ref-8">^</a></b></span> <span class="reference-text">While annotations in RELAX NG can support default attribute values, the RELAX NG specification does not mandate that a validator provide this ability to modify an XML infoset as part of validation. The WXS specification does mandate this behavior. An additional specification associated with RELAX NG does provide this ability. See <a rel="nofollow" class="external text" href="http://www.oasis-open.org/committees/relax-ng/compatibility.html#default-value">Relax NG DTD Compatibility (default value)</a>.</span> </li> <li id="cite_note-clark-9"><span class="mw-cite-backlink"><b><a href="#cite_ref-clark_9-0">^</a></b></span> <span class="reference-text">James Clark (co-creator of RELAX NG). <a rel="nofollow" class="external text" href="http://www.imc.org/ietf-xml-use/mail-archive/msg00217.html">RELAX NG and W3C XML Schema</a> <a rel="nofollow" class="external text" href="https://web.archive.org/web/20070927235958/http://www.imc.org/ietf-xml-use/mail-archive/msg00217.html">Archived</a> September 27, 2007, at the <a href="/wiki/Wayback_Machine" title="Wayback Machine">Wayback Machine</a></span> </li> <li id="cite_note-M95-10"><span class="mw-cite-backlink"><b><a href="#cite_ref-M95_10-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFEve_Maler_and_Jeanne_El_Andaloussi1995" class="citation book cs1">Eve Maler and Jeanne El Andaloussi (1995). <i>Developing SGML DTDs: From Text to Model to Markup</i>. Prentice Hall PTR. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&#160;<a href="/wiki/Special:BookSources/978-0133098815" title="Special:BookSources/978-0133098815"><bdi>978-0133098815</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=Developing+SGML+DTDs%3A+From+Text+to+Model+to+Markup&amp;rft.pub=Prentice+Hall+PTR&amp;rft.date=1995&amp;rft.isbn=978-0133098815&amp;rft.au=Eve+Maler+and+Jeanne+El+Andaloussi&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AXML+schema" class="Z3988"></span></span> </li> <li id="cite_note-D97-11"><span class="mw-cite-backlink"><b><a href="#cite_ref-D97_11-0">^</a></b></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFDeRose,_Steven.1997" class="citation book cs1">DeRose, Steven. (1997). <i>The SGML FAQ Book: Understanding the Foundation of HTML and XML</i>. Kluwer Academic Publishers. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&#160;<a href="/wiki/Special:BookSources/978-0792399438" title="Special:BookSources/978-0792399438"><bdi>978-0792399438</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=The+SGML+FAQ+Book%3A+Understanding+the+Foundation+of+HTML+and+XML&amp;rft.pub=Kluwer+Academic+Publishers&amp;rft.date=1997&amp;rft.isbn=978-0792399438&amp;rft.au=DeRose%2C+Steven.&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AXML+schema" class="Z3988"></span></span> </li> </ol></div></div> <ul><li><a rel="nofollow" class="external text" href="http://pike.psu.edu/publications/sigmod-record-00.pdf">Comparative Analysis of Six XML Schema Languages</a> by Dongwon Lee, Wesley W. Chu, In ACM SIGMOD Record, Vol. 29, No. 3, page 76-87, September 2000</li> <li><a rel="nofollow" class="external text" href="http://pike.psu.edu/publications/toit05.pdf">Taxonomy of XML Schema Languages using Formal Language Theory</a> by Makoto Murata, Dongwon Lee, Murali Mani, Kohsuke Kawaguchi, In ACM Trans. on Internet Technology (TOIT), Vol. 5, No. 4, page 1-45, November 2005</li></ul> <div class="mw-heading mw-heading2"><h2 id="External_links">External links</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=XML_schema&amp;action=edit&amp;section=23" title="Edit section: External links"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><a rel="nofollow" class="external text" href="http://www.xml.com/pub/a/2001/12/12/schemacompare.html">Comparing XML Schema Languages</a> by <a href="/w/index.php?title=Eric_van_der_Vlist&amp;action=edit&amp;redlink=1" class="new" title="Eric van der Vlist (page does not exist)">Eric van der Vlist</a> (2001)</li> <li><a rel="nofollow" class="external text" href="http://www.w3.org/2005/05/25-schema/guthula.html">Application of XML Schema in Web Services Security</a> by Sridhar Guthula, W3C Schema Experience Report, May 2005</li> <li><a rel="nofollow" class="external text" href="http://www.devx.com/xml/Article/41066">March 2009 DEVX article "Taking XML Validation to the Next Level: Introducing CAM" by Michael Sorens</a></li></ul> <!-- NewPP limit report Parsed by mw‐web.codfw.main‐f69cdc8f6‐dtnhv Cached time: 20241122140746 Cache expiry: 2592000 Reduced expiry: false Complications: [vary‐revision‐sha1, show‐toc] CPU time usage: 0.358 seconds Real time usage: 0.655 seconds Preprocessor visited node count: 1394/1000000 Post‐expand include size: 50958/2097152 bytes Template argument size: 9694/2097152 bytes Highest expansion depth: 14/100 Expensive parser function count: 12/500 Unstrip recursion depth: 1/20 Unstrip post‐expand size: 43485/5000000 bytes Lua time usage: 0.206/10.000 seconds Lua memory usage: 7029820/52428800 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 604.175 1 -total 25.05% 151.335 1 Template:Reflist 21.49% 129.857 1 Template:Short_description 16.77% 101.314 7 Template:Cite_web 13.07% 78.971 1 Template:Multiple_issues 12.72% 76.855 4 Template:Main_other 12.36% 74.672 1 Template:SDcat 8.22% 49.667 2 Template:Ambox 6.90% 41.717 2 Template:Pagetype 6.37% 38.464 1 Template:Original_research --> <!-- Saved in parser cache with key enwiki:pcache:idhash:846623-0!canonical and timestamp 20241122140746 and revision id 1186666181. Rendering was triggered because: page-view --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://en.wikipedia.org/w/index.php?title=XML_schema&amp;oldid=1186666181">https://en.wikipedia.org/w/index.php?title=XML_schema&amp;oldid=1186666181</a>"</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/Help:Category" title="Help:Category">Categories</a>: <ul><li><a href="/wiki/Category:Data_modeling_languages" title="Category:Data modeling languages">Data modeling languages</a></li><li><a href="/wiki/Category:ISO_standards" title="Category:ISO standards">ISO standards</a></li><li><a href="/wiki/Category:World_Wide_Web_Consortium_standards" title="Category:World Wide Web Consortium standards">World Wide Web Consortium standards</a></li><li><a href="/wiki/Category:XML" title="Category:XML">XML</a></li><li><a href="/wiki/Category:XML-based_standards" title="Category:XML-based standards">XML-based standards</a></li></ul></div><div id="mw-hidden-catlinks" class="mw-hidden-catlinks mw-hidden-cats-hidden">Hidden categories: <ul><li><a href="/wiki/Category:Webarchive_template_wayback_links" title="Category:Webarchive template wayback links">Webarchive template wayback links</a></li><li><a href="/wiki/Category:Articles_with_short_description" title="Category:Articles with short description">Articles with short description</a></li><li><a href="/wiki/Category:Short_description_matches_Wikidata" title="Category:Short description matches Wikidata">Short description matches Wikidata</a></li><li><a href="/wiki/Category:Articles_that_may_contain_original_research_from_March_2015" title="Category:Articles that may contain original research from March 2015">Articles that may contain original research from March 2015</a></li><li><a href="/wiki/Category:All_articles_that_may_contain_original_research" title="Category:All articles that may contain original research">All articles that may contain original research</a></li><li><a href="/wiki/Category:Articles_needing_additional_references_from_March_2015" title="Category:Articles needing additional references from March 2015">Articles needing additional references from March 2015</a></li><li><a href="/wiki/Category:All_articles_needing_additional_references" title="Category:All articles needing additional references">All articles needing additional references</a></li><li><a href="/wiki/Category:Articles_with_multiple_maintenance_issues" title="Category:Articles with multiple maintenance issues">Articles with multiple maintenance issues</a></li><li><a href="/wiki/Category:Wikipedia_articles_needing_clarification_from_July_2015" title="Category:Wikipedia articles needing clarification from July 2015">Wikipedia articles needing clarification from July 2015</a></li><li><a href="/wiki/Category:All_accuracy_disputes" title="Category:All accuracy disputes">All accuracy disputes</a></li><li><a href="/wiki/Category:Articles_with_disputed_statements_from_May_2015" title="Category:Articles with disputed statements from May 2015">Articles with disputed statements from May 2015</a></li></ul></div></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> This page was last edited on 24 November 2023, at 19:00<span class="anonymous-show">&#160;(UTC)</span>.</li> <li id="footer-info-copyright">Text is available under the <a href="/wiki/Wikipedia:Text_of_the_Creative_Commons_Attribution-ShareAlike_4.0_International_License" title="Wikipedia:Text of the Creative Commons Attribution-ShareAlike 4.0 International License">Creative Commons Attribution-ShareAlike 4.0 License</a>; additional terms may apply. By using this site, you agree to the <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use" class="extiw" title="foundation:Special:MyLanguage/Policy:Terms of Use">Terms of Use</a> and <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy" class="extiw" title="foundation:Special:MyLanguage/Policy:Privacy policy">Privacy Policy</a>. Wikipedia® is a registered trademark of the <a rel="nofollow" class="external text" href="https://wikimediafoundation.org/">Wikimedia Foundation, Inc.</a>, a non-profit organization.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/wiki/Wikipedia:About">About Wikipedia</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Wikipedia:General_disclaimer">Disclaimers</a></li> <li id="footer-places-contact"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us">Contact Wikipedia</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Developers</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/en.wikipedia.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-mobileview"><a href="//en.m.wikipedia.org/w/index.php?title=XML_schema&amp;mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div><script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-f69cdc8f6-98hqk","wgBackendResponseTime":144,"wgPageParseReport":{"limitreport":{"cputime":"0.358","walltime":"0.655","ppvisitednodes":{"value":1394,"limit":1000000},"postexpandincludesize":{"value":50958,"limit":2097152},"templateargumentsize":{"value":9694,"limit":2097152},"expansiondepth":{"value":14,"limit":100},"expensivefunctioncount":{"value":12,"limit":500},"unstrip-depth":{"value":1,"limit":20},"unstrip-size":{"value":43485,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 604.175 1 -total"," 25.05% 151.335 1 Template:Reflist"," 21.49% 129.857 1 Template:Short_description"," 16.77% 101.314 7 Template:Cite_web"," 13.07% 78.971 1 Template:Multiple_issues"," 12.72% 76.855 4 Template:Main_other"," 12.36% 74.672 1 Template:SDcat"," 8.22% 49.667 2 Template:Ambox"," 6.90% 41.717 2 Template:Pagetype"," 6.37% 38.464 1 Template:Original_research"]},"scribunto":{"limitreport-timeusage":{"value":"0.206","limit":"10.000"},"limitreport-memusage":{"value":7029820,"limit":52428800}},"cachereport":{"origin":"mw-web.codfw.main-f69cdc8f6-dtnhv","timestamp":"20241122140746","ttl":2592000,"transientcontent":false}}});});</script> <script type="application/ld+json">{"@context":"https:\/\/schema.org","@type":"Article","name":"XML schema","url":"https:\/\/en.wikipedia.org\/wiki\/XML_schema","sameAs":"http:\/\/www.wikidata.org\/entity\/Q1043076","mainEntity":"http:\/\/www.wikidata.org\/entity\/Q1043076","author":{"@type":"Organization","name":"Contributors to Wikimedia projects"},"publisher":{"@type":"Organization","name":"Wikimedia Foundation, Inc.","logo":{"@type":"ImageObject","url":"https:\/\/www.wikimedia.org\/static\/images\/wmf-hor-googpub.png"}},"datePublished":"2004-07-21T06:34:15Z","dateModified":"2023-11-24T19:00:56Z","headline":"description of a type of XML document"}</script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10