.. Generated by ../update_languages.py -- do not edit!
xml
===
.. automodule:: parce.lang.xml
:members:
:undoc-members:
:show-inheritance:
In this module:
---------------
.. list-table::
:header-rows: 1
:widths: 10, 10, 40, 20, 20
* - Language
- Name (Aliases)
- Description
- Filename(s)
- Mime Type(s)
* - :class:`~parce.lang.xml.Dtd`
- DTD
- Document Type Definition
- ``*.dtd``
- ``application/xml-dtd``
* - :class:`~parce.lang.xml.Xml`
- XML (sgml)
- Extensible Markup Language
- ``*.xml``
- ``text/xml``, ``application/xml``
Examples:
---------
Root lexicon ``Dtd.root`` and text:
.. admonition:: Text rendered using default theme
.. raw:: html
<!-- example doctype definition (dtd) -->
<!ELEMENT book (chapter)*>
<!ELEMENT chapter ANY>
<!ENTITY author "Wilbert Berendsen">
<!ENTITY chapter1 SYSTEM "chapter1.xml">
<!ATTLIST chapter
number ID #REQUIRED
author CDATA #REQUIRED
lastmodified CDATA #IMPLIED
>
Result tree:
.. code-block:: none
:class: token-tree
├╴
├╴
│ ├╴
│ ╰╴' at 38:41 (Comment.End)>
├╴
├╴
├╴
├╴
│ ├╴
│ ├╴
│ │ ├╴
│ │ ╰╴
│ ├╴
│ ╰╴' at 67:68 (Delimiter)>
├╴
├╴
├╴
├╴
│ ├╴
│ ╰╴' at 90:91 (Delimiter)>
├╴
├╴
├╴
├╴
│ ├╴
│ ├╴
│ │ ├╴
│ │ ╰╴
│ ╰╴' at 127:128 (Delimiter)>
├╴
├╴
├╴
├╴
│ ├╴
│ ├╴
│ ├╴
│ │ ├╴
│ │ ╰╴
│ ╰╴' at 168:169 (Delimiter)>
├╴
├╴
├╴
╰╴
├╴
├╴
├╴
├╴
├╴
├╴
├╴
├╴
├╴
╰╴' at 271:272 (Delimiter)>
Root lexicon ``Xml.root`` and text:
.. admonition:: Text rendered using default theme
.. raw:: html
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- xml example -->
<note type="urgent">
<to>Tove</to>
<from>Janié</from>
<heading>Reminder</heading>
<body>Don't <em>forget me</em> this weekend!</body>
</note>
Result tree:
.. code-block:: none
:class: token-tree
├╴
├╴
├╴
│ ├╴
│ ├╴
│ ├╴
│ ├╴
│ ├╴
│ │ ├╴
│ │ ╰╴
│ ├╴
│ ├╴
│ ├╴
│ ├╴
│ ├╴
│ │ ├╴
│ │ ╰╴
│ ╰╴' at 41:43 (Delimiter.Bracket.Preprocessed.End)>
├╴
├╴
├╴
│ ├╴
│ ╰╴' at 61:64 (Comment.End)>
├╴
├╴
├╴
├╴
│ ├╴
│ ├╴
│ ├╴
│ ├╴
│ │ ├╴
│ │ ╰╴
│ ╰╴' at 84:85 (Delimiter)>
├╴
│ ├╴
│ ├╴
│ ├╴
│ ├╴' at 91:92 (Delimiter)>
│ ├╴
│ │ ├╴
│ │ ├╴
│ │ ├╴
│ │ ╰╴' at 100:101 (Delimiter)>
│ ├╴
│ ├╴
│ ├╴
│ ├╴' at 109:110 (Delimiter)>
│ ├╴
│ │ ├╴
│ │ ├╴
│ │ ├╴
│ │ ├╴
│ │ ╰╴' at 128:129 (Delimiter)>
│ ├╴
│ ├╴
│ ├╴
│ ├╴' at 140:141 (Delimiter)>
│ ├╴
│ │ ├╴
│ │ ├╴
│ │ ├╴
│ │ ╰╴' at 158:159 (Delimiter)>
│ ├╴
│ ├╴
│ ├╴
│ ├╴' at 167:168 (Delimiter)>
│ ├╴
│ │ ├╴
│ │ ├╴
│ │ ├╴
│ │ ├╴' at 177:178 (Delimiter)>
│ │ ├╴
│ │ │ ├╴
│ │ │ ├╴
│ │ │ ├╴
│ │ │ ╰╴' at 191:192 (Delimiter)>
│ │ ├╴
│ │ ├╴
│ │ ├╴
│ │ ╰╴' at 212:213 (Delimiter)>
│ ├╴
│ ├╴
│ ├╴
│ ╰╴' at 220:221 (Delimiter)>
╰╴