XmlCodeEditor
Specialized XML and UI layout code editor with schema validation, formatting, and tag autocompletion.
Overview
XmlCodeEditor extends CodeEditor configured specifically for UniGUI XML layout files. Includes built-in XML parsing, hierarchy formatting, widget registry autocompletion, and XML syntax error squiggles.
XML Layout Editor
API
XmlCodeEditor::formatXml()
Format XML
Formats XML source with standard indentation and attribute line wrapping.
Returns boolean.
XmlCodeEditor::registry(XmlWidgetRegistry)
Set Widget Registry
Sets widget registry used for tag autocompletion and attribute schema validation.
| Parameter | Type | Description |
|---|---|---|
registry |
XmlWidgetRegistry |
— |
Returns XmlCodeEditor.
XmlCodeEditor::validateXml()
Validate XML
Executes synchronous XML schema and syntax validation.
Returns boolean.