Skip to main content

Administrating MarkLogic Server

Defining Fragment Parents

To define a rule for a fragment parent, follow these steps:

  1. Click the Databases icon on the left tree menu.

  2. Determine the database for which you are specifying a new fragment parent.

  3. Click the icon for this database, either in the tree menu or the Database Summary page.

  4. Click the Fragment Parents icon.

  5. Click the Create tab. The Create Fragment Parents page appears:

    frag_parent_v10.gif
  6. Enter the namespace URI of the XML element that you are using as a rule for the fragment parent into the Namespace URI field.

    Every XML element is associated with a namespace. For the fragment rule to be precise, you must specify the namespace of the XML element. Leaving the namespace URI field blank specifies the universal unnamed namespace.

    Alternatively, you can specify that the rule for the fragment root is namespace-independent by putting an asterisk (*) into the Namespace URI field.

  7. Enter the element name into the localname field.

    The local name is the name of the parent XML element whose children will be fragment roots. If you have more than one fragment parent rule associated with the specified namespace, you can provide a comma-separated list of element names.

  8. To add more fragment parents, click More Items and repeat Step 6 - Step 7 for each fragment parent as needed.

  9. Scroll to the top or bottom and click OK.

The new fragment rules are added to the database. These rules are applied to XML documents loaded into the specified database from this point on.