Dela via


XmlField Collection Editor Dialog Box

Allows you to add or remove <field> elements to the current <key> element. The XmlField Collection Editor appears when you are using the XmlKeyConstraint Collection Editor and click the ellipsis button next to the fields property of an existing key.

  • Members
    Lists all <field> elements in the current collection.

  • Properties
    Lists the individual properties of the element selected in the Members area.

    • id (optional) - the identifier of this field. This must be a unique ID for this document. The id must be of type id.

    • xpath (required) - an XPath expression that is relative to each element selected by the selector of the identity constraint. This expression must identify a single element or attribute whose content or value is used for the constraint. If the expression identifies an element, that element must be of a simple type.

  • Add
    Adds a new <field> element to the current collection.

  • Remove
    Deletes the selected element from the collection.

See Also

Other Resources

XML Schemas (XSD) Reference

XML Tools in Visual Studio

XML Documents and Data