Expand description
UCI XML → instance tree → UCI XML.
The root local name is the global element. xsi:type selects a
concrete type. Nesting is counted on the text before the parser
builds a tree, because roxmltree has no depth limit of its own.
Text that does not fit a primitive is carried as written.
Constants§
Functions§
- escape 🔒Escapes
&,<, and>in element text. - Parses UCI XML into a
Message. - Local part of a QName (
uci:Ping→Ping). - Whether element nesting in
textcould exceedlimit, without building a tree. - Carry XML text as the JSON shape its declared type calls for.
- Walks one XML element as
type_name.xsi:typeoverrides the declared type when it names a complex type. - Bytes consumed by a start tag, and whether it closed itself.
- Bytes consumed if
restopens withopen, through the matchingclose. - Serializes
messageas UCI XML with the OAM namespace on the root. - Writes one element. The OAM namespace is on the root;
xsi:typeis written whenComplex::type_nameis set. - OAM default namespace, and
xmlns:xsiwhen the root names a concrete type.