1. Edit tool

This tool works in two steps:

  1. Click on one of the following buttons:

    Replace

    (See EditReplace for a complete description of the command.)

    Insert Before

    (See EditInsert Before for a complete description of the command.)

    Insert

    (See EditInsert for a complete description of the command.)

    Insert After

    (See EditInsert After for a complete description of the command.)

    Convert

    (See EditConvert for a complete description of the command.)

    Wrap

    (See EditWrap for a complete description of the command.)

    This first action just fills the list below these buttons with all the allowed arguments (element name or text node) for the selected command.

  2. Choose an element name from the list or type its name in the text field. It is this second action which actually triggers the command.

How to specify an argument for one of the editing commands described above

Procedure 7.1. Procedure for specifying an element argument when the command is applied to an element of the unconstrained type
  1. Type any element name in the text field.

    If the namespace of the element name has not been declared, you will have to declare it using ToolsDeclare Namespace before being allowed to specify this name.

  2. Press Enter or click on the OK button.

[Note]What is an element of the unconstrained type?

The type of an element is unconstrained if

  • the element is contained in a document which is not constrained by a grammar,

  • OR the content of the element is invalid according to the grammar used to constrain the document.

  • OR the content of an ancestor of the element is invalid according to the grammar used to constrain the document.

In all cases, XXE allows the user to add or remove any child element or text node.

In the second case, fixing the invalid element will automatically make it recover its actual, constrained, type.

Procedure 7.2. Procedure for specifying an element argument that matches an element wildcard
  1. Type an element name that matches the wildcard in the text field.

    If the namespace of the element name has not been declared, you will have to declare it using ToolsDeclare Namespace before being allowed to specify this name.

  2. Press Enter or click on the OK button.

    XXE will of course check that the name you have typed conforms to the element wildcard.

[Note]What is a element wildcard?

Using a W3C XML Schema or a RELAX NG schema (but not a DTD), it is possible to specify an element type which constrains some of its child elements just to belong to a certain set of namepaces and nothing more.

The set of allowed namespaces is called a wildcard.