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

Default XML namespace statement

The default xml namespace statement is used to specify the default E4X namespace used for lookups where the XML prefix is omitted, influencing the surrounding frame’s [[DefaultXMLNamespace]] internal property.

namespace ninja = "http://www.ninja.com/2007/build"

{
    default xml namespace = ninja
    // [[DefaultXMLNamespace]] = "http://www.ninja.com/2007/build"
}

// [[DefaultXMLNamespace]] = ""

Syntax

    DefaultXMLNamespaceStatement :
      default [no line break] xml [no line break] namespace = NonAssignmentExpressionallowIn