Team Ai
Apppublic

parthtamu/rag-code-assistant

sourceHugging Faceupdated 7mo agoView on Hugging Face
0likes
markup.html464 linesDownload Raw Back to docs
1<!DOCTYPE html>2 3<html lang="en" data-content_root="../">4  <head>5    <meta charset="utf-8" />6    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />7<meta property="og:title" content="Structured Markup Processing Tools" />8<meta property="og:type" content="website" />9<meta property="og:url" content="https://docs.python.org/3/library/markup.html" />10<meta property="og:site_name" content="Python documentation" />11<meta property="og:description" content="Python supports a variety of modules to work with various forms of structured data markup. This includes modules to work with the Standard Generalized Markup Language (SGML) and the Hypertext Marku..." />12<meta property="og:image:width" content="1146" />13<meta property="og:image:height" content="600" />14<meta property="og:image" content="https://docs.python.org/3.15/_images/social_previews/summary_library_markup_34e345b6.png" />15<meta property="og:image:alt" content="Python supports a variety of modules to work with various forms of structured data markup. This includes modules to work with the Standard Generalized Markup Language (SGML) and the Hypertext Marku..." />16<meta name="description" content="Python supports a variety of modules to work with various forms of structured data markup. This includes modules to work with the Standard Generalized Markup Language (SGML) and the Hypertext Marku..." />17<meta name="twitter:card" content="summary_large_image" />18<meta name="theme-color" content="#3776ab">19 20    <title>Structured Markup Processing Tools &#8212; Python 3.15.0a6 documentation</title><meta name="viewport" content="width=device-width, initial-scale=1.0">21    22    <link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=b86133f3" />23    <link rel="stylesheet" type="text/css" href="../_static/classic.css?v=234b1a7c" />24    <link rel="stylesheet" type="text/css" href="../_static/pydoctheme.css?v=89a2f22a" />25    <link rel="stylesheet" type="text/css" href="../_static/profiling-sampling-visualization.css?v=0c2600ae" />26    <link id="pygments_dark_css" media="(prefers-color-scheme: dark)" rel="stylesheet" type="text/css" href="../_static/pygments_dark.css?v=5349f25f" />27    28    <script src="../_static/documentation_options.js?v=6b7c9ff5"></script>29    <script src="../_static/doctools.js?v=9bcbadda"></script>30    <script src="../_static/sphinx_highlight.js?v=dc90522c"></script>31    <script src="../_static/profiling-sampling-visualization.js?v=9811ed04"></script>32    33    <script src="../_static/sidebar.js"></script>34    35    <link rel="search" type="application/opensearchdescription+xml"36          title="Search within Python 3.15.0a6 documentation"37          href="../_static/opensearch.xml"/>38    <link rel="author" title="About these documents" href="../about.html" />39    <link rel="index" title="Index" href="../genindex.html" />40    <link rel="search" title="Search" href="../search.html" />41    <link rel="copyright" title="Copyright" href="../copyright.html" />42    <link rel="next" title="html — HyperText Markup Language support" href="html.html" />43    <link rel="prev" title="quopri — Encode and decode MIME quoted-printable data" href="quopri.html" />44    45      46      <script defer file-types="bz2,epub,zip" data-domain="docs.python.org" src="https://analytics.python.org/js/script.file-downloads.outbound-links.js"></script>47      48      <link rel="canonical" href="https://docs.python.org/3/library/markup.html">49      50    51 52    53    <style>54      @media only screen {55        table.full-width-table {56            width: 100%;57        }58      }59    </style>60<link rel="stylesheet" href="../_static/pydoctheme_dark.css" media="(prefers-color-scheme: dark)" id="pydoctheme_dark_css">61    <link rel="shortcut icon" type="image/png" href="../_static/py.svg">62            <script type="text/javascript" src="../_static/copybutton.js"></script>63            <script type="text/javascript" src="../_static/menu.js"></script>64            <script type="text/javascript" src="../_static/search-focus.js"></script>65            <script type="text/javascript" src="../_static/themetoggle.js"></script> 66            <script type="text/javascript" src="../_static/rtd_switcher.js"></script>67            <meta name="readthedocs-addons-api-version" content="1">68 69  </head>70<body>71<div class="mobile-nav">72    <input type="checkbox" id="menuToggler" class="toggler__input" aria-controls="navigation"73           aria-pressed="false" aria-expanded="false" role="button" aria-label="Menu">74    <nav class="nav-content" role="navigation">75        <label for="menuToggler" class="toggler__label">76            <span></span>77        </label>78        <span class="nav-items-wrapper">79            <a href="https://www.python.org/" class="nav-logo">80                <img src="../_static/py.svg" alt="Python logo">81            </a>82            <span class="version_switcher_placeholder"></span>83            <form role="search" class="search" action="../search.html" method="get">84                <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" class="search-icon">85                    <path fill-rule="nonzero" fill="currentColor" d="M15.5 14h-.79l-.28-.27a6.5 6.5 0 001.48-5.34c-.47-2.78-2.79-5-5.59-5.34a6.505 6.505 0 00-7.27 7.27c.34 2.8 2.56 5.12 5.34 5.59a6.5 6.5 0 005.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0 .41-.41.41-1.08 0-1.49L15.5 14zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path>86                </svg>87                <input placeholder="Quick search" aria-label="Quick search" type="search" name="q">88                <input type="submit" value="Go">89            </form>90        </span>91    </nav>92    <div class="menu-wrapper">93        <nav class="menu" role="navigation" aria-label="main navigation">94            <div class="language_switcher_placeholder"></div>95            96<label class="theme-selector-label">97    Theme98    <select class="theme-selector" oninput="activateTheme(this.value)">99        <option value="auto" selected>Auto</option>100        <option value="light">Light</option>101        <option value="dark">Dark</option>102    </select>103</label>104  <div>105    <h4>Previous topic</h4>106    <p class="topless"><a href="quopri.html"107                          title="previous chapter"><code class="xref py py-mod docutils literal notranslate"><span class="pre">quopri</span></code> — Encode and decode MIME quoted-printable data</a></p>108  </div>109  <div>110    <h4>Next topic</h4>111    <p class="topless"><a href="html.html"112                          title="next chapter"><code class="xref py py-mod docutils literal notranslate"><span class="pre">html</span></code> — HyperText Markup Language support</a></p>113  </div>114  <script>115    document.addEventListener('DOMContentLoaded', () => {116        const title = document.querySelector('meta[property="og:title"]').content;117        const elements = document.querySelectorAll('.improvepage');118        const pageurl = window.location.href.split('?')[0];119        elements.forEach(element => {120            const url = new URL(element.href.split('?')[0].replace("-nojs", ""));121            url.searchParams.set('pagetitle', title);122            url.searchParams.set('pageurl', pageurl);123            url.searchParams.set('pagesource', "library/markup.rst");124            element.href = url.toString();125        });126    });127  </script>128  <div role="note" aria-label="source link">129    <h3>This page</h3>130    <ul class="this-page-menu">131      <li><a href="../bugs.html">Report a bug</a></li>132      <li><a class="improvepage" href="../improve-page-nojs.html">Improve this page</a></li>133      <li>134        <a href="https://github.com/python/cpython/blob/main/Doc/library/markup.rst?plain=1"135            rel="nofollow">Show source136        </a>137      </li>138      139    </ul>140  </div>141        </nav>142    </div>143</div>144 145  146    <div class="related" role="navigation" aria-label="Related">147      <h3>Navigation</h3>148      <ul>149        <li class="right" style="margin-right: 10px">150          <a href="../genindex.html" title="General Index"151             accesskey="I">index</a></li>152        <li class="right" >153          <a href="../py-modindex.html" title="Python Module Index"154             >modules</a> |</li>155        <li class="right" >156          <a href="html.html" title="html — HyperText Markup Language support"157             accesskey="N">next</a> |</li>158        <li class="right" >159          <a href="quopri.html" title="quopri — Encode and decode MIME quoted-printable data"160             accesskey="P">previous</a> |</li>161 162          <li><img src="../_static/py.svg" alt="Python logo" style="vertical-align: middle; margin-top: -1px"></li>163          <li><a href="https://www.python.org/">Python</a> &#187;</li>164          <li class="switchers">165            <div class="language_switcher_placeholder"></div>166            <div class="version_switcher_placeholder"></div>167          </li>168          <li>169              170          </li>171    <li id="cpython-language-and-version">172      <a href="../index.html">3.15.0a6 Documentation</a> &#187;173    </li>174 175          <li class="nav-item nav-item-1"><a href="index.html" accesskey="U">The Python Standard Library</a> &#187;</li>176        <li class="nav-item nav-item-this"><a href="">Structured Markup Processing Tools</a></li>177                <li class="right">178                    179 180    <div class="inline-search" role="search">181        <form class="inline-search" action="../search.html" method="get">182          <input placeholder="Quick search" aria-label="Quick search" type="search" name="q" id="search-box">183          <input type="submit" value="Go">184        </form>185    </div>186                     |187                </li>188            <li class="right">189<label class="theme-selector-label">190    Theme191    <select class="theme-selector" oninput="activateTheme(this.value)">192        <option value="auto" selected>Auto</option>193        <option value="light">Light</option>194        <option value="dark">Dark</option>195    </select>196</label> |</li>197            198      </ul>199    </div>    200 201    <div class="document">202      <div class="documentwrapper">203        <div class="bodywrapper">204          <div class="body" role="main">205            206  <section id="structured-markup-processing-tools">207<span id="markup"></span><h1>Structured Markup Processing Tools<a class="headerlink" href="#structured-markup-processing-tools" title="Link to this heading">¶</a></h1>208<p>Python supports a variety of modules to work with various forms of structured209data markup.  This includes modules to work with the Standard Generalized Markup210Language (SGML) and the Hypertext Markup Language (HTML), and several interfaces211for working with the Extensible Markup Language (XML).</p>212<div class="toctree-wrapper compound">213<ul>214<li class="toctree-l1"><a class="reference internal" href="html.html"><code class="xref py py-mod docutils literal notranslate"><span class="pre">html</span></code> — HyperText Markup Language support</a></li>215<li class="toctree-l1"><a class="reference internal" href="html.parser.html"><code class="xref py py-mod docutils literal notranslate"><span class="pre">html.parser</span></code> — Simple HTML and XHTML parser</a><ul>216<li class="toctree-l2"><a class="reference internal" href="html.parser.html#example-html-parser-application">Example HTML Parser Application</a></li>217<li class="toctree-l2"><a class="reference internal" href="html.parser.html#htmlparser-methods"><code class="xref py py-class docutils literal notranslate"><span class="pre">HTMLParser</span></code> Methods</a></li>218<li class="toctree-l2"><a class="reference internal" href="html.parser.html#examples">Examples</a></li>219</ul>220</li>221<li class="toctree-l1"><a class="reference internal" href="html.entities.html"><code class="xref py py-mod docutils literal notranslate"><span class="pre">html.entities</span></code> — Definitions of HTML general entities</a></li>222<li class="toctree-l1"><a class="reference internal" href="xml.html">XML Processing Modules</a><ul>223<li class="toctree-l2"><a class="reference internal" href="xml.html#xml-vulnerabilities">XML security</a></li>224</ul>225</li>226<li class="toctree-l1"><a class="reference internal" href="xml.etree.elementtree.html"><code class="xref py py-mod docutils literal notranslate"><span class="pre">xml.etree.ElementTree</span></code> — The ElementTree XML API</a><ul>227<li class="toctree-l2"><a class="reference internal" href="xml.etree.elementtree.html#tutorial">Tutorial</a><ul>228<li class="toctree-l3"><a class="reference internal" href="xml.etree.elementtree.html#xml-tree-and-elements">XML tree and elements</a></li>229<li class="toctree-l3"><a class="reference internal" href="xml.etree.elementtree.html#parsing-xml">Parsing XML</a></li>230<li class="toctree-l3"><a class="reference internal" href="xml.etree.elementtree.html#pull-api-for-non-blocking-parsing">Pull API for non-blocking parsing</a></li>231<li class="toctree-l3"><a class="reference internal" href="xml.etree.elementtree.html#finding-interesting-elements">Finding interesting elements</a></li>232<li class="toctree-l3"><a class="reference internal" href="xml.etree.elementtree.html#modifying-an-xml-file">Modifying an XML File</a></li>233<li class="toctree-l3"><a class="reference internal" href="xml.etree.elementtree.html#building-xml-documents">Building XML documents</a></li>234<li class="toctree-l3"><a class="reference internal" href="xml.etree.elementtree.html#parsing-xml-with-namespaces">Parsing XML with Namespaces</a></li>235</ul>236</li>237<li class="toctree-l2"><a class="reference internal" href="xml.etree.elementtree.html#xpath-support">XPath support</a><ul>238<li class="toctree-l3"><a class="reference internal" href="xml.etree.elementtree.html#example">Example</a></li>239<li class="toctree-l3"><a class="reference internal" href="xml.etree.elementtree.html#supported-xpath-syntax">Supported XPath syntax</a></li>240</ul>241</li>242<li class="toctree-l2"><a class="reference internal" href="xml.etree.elementtree.html#reference">Reference</a><ul>243<li class="toctree-l3"><a class="reference internal" href="xml.etree.elementtree.html#functions">Functions</a></li>244</ul>245</li>246<li class="toctree-l2"><a class="reference internal" href="xml.etree.elementtree.html#xinclude-support">XInclude support</a><ul>247<li class="toctree-l3"><a class="reference internal" href="xml.etree.elementtree.html#id3">Example</a></li>248</ul>249</li>250<li class="toctree-l2"><a class="reference internal" href="xml.etree.elementtree.html#id4">Reference</a><ul>251<li class="toctree-l3"><a class="reference internal" href="xml.etree.elementtree.html#elementinclude-functions">Functions</a></li>252<li class="toctree-l3"><a class="reference internal" href="xml.etree.elementtree.html#element-objects">Element Objects</a></li>253<li class="toctree-l3"><a class="reference internal" href="xml.etree.elementtree.html#elementtree-objects">ElementTree Objects</a></li>254<li class="toctree-l3"><a class="reference internal" href="xml.etree.elementtree.html#qname-objects">QName Objects</a></li>255<li class="toctree-l3"><a class="reference internal" href="xml.etree.elementtree.html#treebuilder-objects">TreeBuilder Objects</a></li>256<li class="toctree-l3"><a class="reference internal" href="xml.etree.elementtree.html#xmlparser-objects">XMLParser Objects</a></li>257<li class="toctree-l3"><a class="reference internal" href="xml.etree.elementtree.html#xmlpullparser-objects">XMLPullParser Objects</a></li>258<li class="toctree-l3"><a class="reference internal" href="xml.etree.elementtree.html#exceptions">Exceptions</a></li>259</ul>260</li>261</ul>262</li>263<li class="toctree-l1"><a class="reference internal" href="xml.dom.html"><code class="xref py py-mod docutils literal notranslate"><span class="pre">xml.dom</span></code> — The Document Object Model API</a><ul>264<li class="toctree-l2"><a class="reference internal" href="xml.dom.html#module-contents">Module Contents</a></li>265<li class="toctree-l2"><a class="reference internal" href="xml.dom.html#objects-in-the-dom">Objects in the DOM</a><ul>266<li class="toctree-l3"><a class="reference internal" href="xml.dom.html#domimplementation-objects">DOMImplementation Objects</a></li>267<li class="toctree-l3"><a class="reference internal" href="xml.dom.html#node-objects">Node Objects</a></li>268<li class="toctree-l3"><a class="reference internal" href="xml.dom.html#nodelist-objects">NodeList Objects</a></li>269<li class="toctree-l3"><a class="reference internal" href="xml.dom.html#documenttype-objects">DocumentType Objects</a></li>270<li class="toctree-l3"><a class="reference internal" href="xml.dom.html#document-objects">Document Objects</a></li>271<li class="toctree-l3"><a class="reference internal" href="xml.dom.html#element-objects">Element Objects</a></li>272<li class="toctree-l3"><a class="reference internal" href="xml.dom.html#attr-objects">Attr Objects</a></li>273<li class="toctree-l3"><a class="reference internal" href="xml.dom.html#namednodemap-objects">NamedNodeMap Objects</a></li>274<li class="toctree-l3"><a class="reference internal" href="xml.dom.html#comment-objects">Comment Objects</a></li>275<li class="toctree-l3"><a class="reference internal" href="xml.dom.html#text-and-cdatasection-objects">Text and CDATASection Objects</a></li>276<li class="toctree-l3"><a class="reference internal" href="xml.dom.html#processinginstruction-objects">ProcessingInstruction Objects</a></li>277<li class="toctree-l3"><a class="reference internal" href="xml.dom.html#exceptions">Exceptions</a></li>278</ul>279</li>280<li class="toctree-l2"><a class="reference internal" href="xml.dom.html#conformance">Conformance</a><ul>281<li class="toctree-l3"><a class="reference internal" href="xml.dom.html#type-mapping">Type Mapping</a></li>282<li class="toctree-l3"><a class="reference internal" href="xml.dom.html#accessor-methods">Accessor Methods</a></li>283</ul>284</li>285</ul>286</li>287<li class="toctree-l1"><a class="reference internal" href="xml.dom.minidom.html"><code class="xref py py-mod docutils literal notranslate"><span class="pre">xml.dom.minidom</span></code> — Minimal DOM implementation</a><ul>288<li class="toctree-l2"><a class="reference internal" href="xml.dom.minidom.html#dom-objects">DOM Objects</a></li>289<li class="toctree-l2"><a class="reference internal" href="xml.dom.minidom.html#dom-example">DOM Example</a></li>290<li class="toctree-l2"><a class="reference internal" href="xml.dom.minidom.html#minidom-and-the-dom-standard">minidom and the DOM standard</a></li>291</ul>292</li>293<li class="toctree-l1"><a class="reference internal" href="xml.dom.pulldom.html"><code class="xref py py-mod docutils literal notranslate"><span class="pre">xml.dom.pulldom</span></code> — Support for building partial DOM trees</a><ul>294<li class="toctree-l2"><a class="reference internal" href="xml.dom.pulldom.html#domeventstream-objects">DOMEventStream Objects</a></li>295</ul>296</li>297<li class="toctree-l1"><a class="reference internal" href="xml.sax.html"><code class="xref py py-mod docutils literal notranslate"><span class="pre">xml.sax</span></code> — Support for SAX2 parsers</a><ul>298<li class="toctree-l2"><a class="reference internal" href="xml.sax.html#saxexception-objects">SAXException Objects</a></li>299</ul>300</li>301<li class="toctree-l1"><a class="reference internal" href="xml.sax.handler.html"><code class="xref py py-mod docutils literal notranslate"><span class="pre">xml.sax.handler</span></code> — Base classes for SAX handlers</a><ul>302<li class="toctree-l2"><a class="reference internal" href="xml.sax.handler.html#contenthandler-objects">ContentHandler Objects</a></li>303<li class="toctree-l2"><a class="reference internal" href="xml.sax.handler.html#dtdhandler-objects">DTDHandler Objects</a></li>304<li class="toctree-l2"><a class="reference internal" href="xml.sax.handler.html#entityresolver-objects">EntityResolver Objects</a></li>305<li class="toctree-l2"><a class="reference internal" href="xml.sax.handler.html#errorhandler-objects">ErrorHandler Objects</a></li>306<li class="toctree-l2"><a class="reference internal" href="xml.sax.handler.html#lexicalhandler-objects">LexicalHandler Objects</a></li>307</ul>308</li>309<li class="toctree-l1"><a class="reference internal" href="xml.sax.utils.html"><code class="xref py py-mod docutils literal notranslate"><span class="pre">xml.sax.saxutils</span></code> — SAX Utilities</a></li>310<li class="toctree-l1"><a class="reference internal" href="xml.sax.reader.html"><code class="xref py py-mod docutils literal notranslate"><span class="pre">xml.sax.xmlreader</span></code> — Interface for XML parsers</a><ul>311<li class="toctree-l2"><a class="reference internal" href="xml.sax.reader.html#xmlreader-objects">XMLReader Objects</a></li>312<li class="toctree-l2"><a class="reference internal" href="xml.sax.reader.html#incrementalparser-objects">IncrementalParser Objects</a></li>313<li class="toctree-l2"><a class="reference internal" href="xml.sax.reader.html#locator-objects">Locator Objects</a></li>314<li class="toctree-l2"><a class="reference internal" href="xml.sax.reader.html#inputsource-objects">InputSource Objects</a></li>315<li class="toctree-l2"><a class="reference internal" href="xml.sax.reader.html#the-attributes-interface">The <code class="xref py py-class docutils literal notranslate"><span class="pre">Attributes</span></code> Interface</a></li>316<li class="toctree-l2"><a class="reference internal" href="xml.sax.reader.html#the-attributesns-interface">The <code class="xref py py-class docutils literal notranslate"><span class="pre">AttributesNS</span></code> Interface</a></li>317</ul>318</li>319<li class="toctree-l1"><a class="reference internal" href="pyexpat.html"><code class="xref py py-mod docutils literal notranslate"><span class="pre">xml.parsers.expat</span></code> — Fast XML parsing using Expat</a><ul>320<li class="toctree-l2"><a class="reference internal" href="pyexpat.html#xmlparser-objects">XMLParser Objects</a></li>321<li class="toctree-l2"><a class="reference internal" href="pyexpat.html#expaterror-exceptions">ExpatError Exceptions</a></li>322<li class="toctree-l2"><a class="reference internal" href="pyexpat.html#example">Example</a></li>323<li class="toctree-l2"><a class="reference internal" href="pyexpat.html#module-xml.parsers.expat.model">Content Model Descriptions</a></li>324<li class="toctree-l2"><a class="reference internal" href="pyexpat.html#module-xml.parsers.expat.errors">Expat error constants</a></li>325</ul>326</li>327</ul>328</div>329</section>330 331 332            <div class="clearer"></div>333          </div>334        </div>335      </div>336      <div class="sphinxsidebar" role="navigation" aria-label="Main">337        <div class="sphinxsidebarwrapper">338  <div>339    <h4>Previous topic</h4>340    <p class="topless"><a href="quopri.html"341                          title="previous chapter"><code class="xref py py-mod docutils literal notranslate"><span class="pre">quopri</span></code> — Encode and decode MIME quoted-printable data</a></p>342  </div>343  <div>344    <h4>Next topic</h4>345    <p class="topless"><a href="html.html"346                          title="next chapter"><code class="xref py py-mod docutils literal notranslate"><span class="pre">html</span></code> — HyperText Markup Language support</a></p>347  </div>348  <script>349    document.addEventListener('DOMContentLoaded', () => {350        const title = document.querySelector('meta[property="og:title"]').content;351        const elements = document.querySelectorAll('.improvepage');352        const pageurl = window.location.href.split('?')[0];353        elements.forEach(element => {354            const url = new URL(element.href.split('?')[0].replace("-nojs", ""));355            url.searchParams.set('pagetitle', title);356            url.searchParams.set('pageurl', pageurl);357            url.searchParams.set('pagesource', "library/markup.rst");358            element.href = url.toString();359        });360    });361  </script>362  <div role="note" aria-label="source link">363    <h3>This page</h3>364    <ul class="this-page-menu">365      <li><a href="../bugs.html">Report a bug</a></li>366      <li><a class="improvepage" href="../improve-page-nojs.html">Improve this page</a></li>367      <li>368        <a href="https://github.com/python/cpython/blob/main/Doc/library/markup.rst?plain=1"369            rel="nofollow">Show source370        </a>371      </li>372      373    </ul>374  </div>375        </div>376<div id="sidebarbutton" title="Collapse sidebar">377<span>«</span>378</div>379 380      </div>381      <div class="clearer"></div>382    </div>  383    <div class="related" role="navigation" aria-label="Related">384      <h3>Navigation</h3>385      <ul>386        <li class="right" style="margin-right: 10px">387          <a href="../genindex.html" title="General Index"388             >index</a></li>389        <li class="right" >390          <a href="../py-modindex.html" title="Python Module Index"391             >modules</a> |</li>392        <li class="right" >393          <a href="html.html" title="html — HyperText Markup Language support"394             >next</a> |</li>395        <li class="right" >396          <a href="quopri.html" title="quopri — Encode and decode MIME quoted-printable data"397             >previous</a> |</li>398 399          <li><img src="../_static/py.svg" alt="Python logo" style="vertical-align: middle; margin-top: -1px"></li>400          <li><a href="https://www.python.org/">Python</a> &#187;</li>401          <li class="switchers">402            <div class="language_switcher_placeholder"></div>403            <div class="version_switcher_placeholder"></div>404          </li>405          <li>406              407          </li>408    <li id="cpython-language-and-version">409      <a href="../index.html">3.15.0a6 Documentation</a> &#187;410    </li>411 412          <li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> &#187;</li>413        <li class="nav-item nav-item-this"><a href="">Structured Markup Processing Tools</a></li>414                <li class="right">415                    416 417    <div class="inline-search" role="search">418        <form class="inline-search" action="../search.html" method="get">419          <input placeholder="Quick search" aria-label="Quick search" type="search" name="q" id="search-box">420          <input type="submit" value="Go">421        </form>422    </div>423                     |424                </li>425            <li class="right">426<label class="theme-selector-label">427    Theme428    <select class="theme-selector" oninput="activateTheme(this.value)">429        <option value="auto" selected>Auto</option>430        <option value="light">Light</option>431        <option value="dark">Dark</option>432    </select>433</label> |</li>434            435      </ul>436    </div>  437    <div class="footer">438    &copy; <a href="../copyright.html">Copyright</a> 2001 Python Software Foundation.439    <br>440    This page is licensed under the Python Software Foundation License Version 2.441    <br>442    Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.443    <br>444    445      See <a href="/license.html">History and License</a> for more information.<br>446    447    448    <br>449 450    The Python Software Foundation is a non-profit corporation.451<a href="https://www.python.org/psf/donations/">Please donate.</a>452<br>453    <br>454      Last updated on Mar 10, 2026 (08:58 UTC).455    456      <a href="/bugs.html">Found a bug</a>?457    458    <br>459 460    Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 8.2.3.461    </div>462 463  </body>464</html>