6.4. The "Declare Namespace" dialog box

Important

XXE is not namespace aware for a document using a DTD as its grammar.

Being not namespace aware means that xmlns attributes are treated as ordinary attributes with no special semantics. All element and attributes names (except xml:space, xml:lang, xml:base which belong to the "http://www.w3.org/XML/1998/namespace" namespace) have no namespace. Names like "foo:bar" are allowed.

A DTD is considered to be a grammar if it defines at least one element type. That is, a DTD only declaring entities is not considered to be a grammar.

This dialog box is not displayable for non-namespace aware documents.

This dialog box can be used

Procedure for declaring a namespace:

  1. You may have to clear the form by clicking on the Cancel button

  2. Specify the URI of the namespace in the Namespace field.

  3. Specify the ``prefix'' of the namespace in the Prefix field.

    Specifying a prefix is mandatory even if the namespace is to be marked as ``default''.

  4. Optionally mark it as being the `default'' namespace by checking the Default toggle.

  5. Type Enter in any field or click on the OK button.

Procedure for changing the declaration of a namespace:

  1. Select the namespace declaration to be edited by clicking on its row in the table.

  2. Specify the ``prefix'' of the namespace in the Prefix field.

    Specifying a prefix is mandatory even if the namespace is to be marked as ``default''.

  3. Optionally mark it as being the ``default'' namespace by checking the Default toggle.

  4. Type Enter in any field or click on the OK button.