XML Text Box¶
XmlTextBox is a code-editor widget for the complete XML at its bound node. It displays formatted outer XML rather than only the node's text content.
Validation and Save Behavior¶
On a valid edit, the widget replaces the node's outer XML. An empty edit produces an empty element with the current node name. If parsing fails, the widget leaves the model unchanged, marks the editor border red, and reports an invalid-XML error in the form UI.
Replacing outer XML can change the element name, attributes, and children beneath the bound node. Restrict access to this widget to trusted technical users and validate the resulting form schema in the process that consumes it.
Example¶
1 2 3 4 5 | |