Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Use XML directive

The use xml directive is used to provide a XMLContext object at the surrounding frame for configuring the XML/XMLList data types.

const ctx : XMLContext = {
    ignoreWhitespace: true,
}

{
    use xml ctx
    new XML("<a>  </a>")
}

Syntax

    UseXMLDirective :
      use xml ListExpressionallowIn