<xml>

Description

Verbatim XML.

BDML <xml> elements provide a useful way to render verbatim XML into the translated BDML document whilst maintaining the XML structure within the source document. Any well formed XML may be placed inside a BDML <xml> element. The resulting translated document will render the XML as is.

The whitespace handling of the <xml> elements is not perfect. If character perfect whitespace handling is required, the <code> element can be used instead with lang set to "xml". Note however that all XML text placed within the <code> element will need to be escaped (e.g. < characters replaced with the &lt; sequence), unlike XML placed inside the <xml> element.

Attributes

No attributes other than standard attributes are defined for <xml> elements.

Immediate descendants

BDML <xml> elements may contain any well formed XML fragment.

Immediate ancestors

Element name Relation
<chapter> The chapter containing the BDML <xml> element.
<section> The section containing the BDML <xml> element.

Example

<document xmlns="http://boradoc.org/1.0">
  <chapter>
    <xml>
      <A>
        <B att="some attribute text">Some element text.</B>
      </A>
    </xml>
  </chapter>
</document>

The above BDML renders to the following:

<A>
  <B att="some attribute text">Some element text.</B>
</A>