The xmlToEdit element specifies additional properties of a control that is used in the form view to edit the form file.

Parent Elements


Child Elements



container: This attribute specifies an XPath expression that evaluates to the context in which the control MUST be selectable and enabled.

item: This attribute specifies an XPath expression that MUST evaluate to the XML nodes to be edited with the control. The specified XPath expression MUST be unique among all xmlToEdit elements in the form definition (.xsf) file.

name: This attribute specifies the name of the control.

viewContext: This attribute specifies the identifier of the corresponding control in the form view. If this attribute is not present, its value MUST be interpreted as an empty string.

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this element.

 <xsd:element name="xmlToEdit">
       <xsd:element ref="xsf:editWith" minOccurs="0" maxOccurs="1"/>
     <xsd:attribute name="name" type="xsd:NMTOKEN" use="required"/>
     <xsd:attribute name="item" type="xsd:string" use="required"/>
     <xsd:attribute name="container" type="xsd:string"/>
     <xsd:attribute name="viewContext">
         <xsd:restriction base="xsd:string">
           <xsd:pattern value="((\.|\#|[a-zA-Z0-9_])[a-zA-Z0-9_]*)(\s((\.|\#|[a-zA-Z0-9_])[a-zA-Z0-9_]*))*"/>