oa_gateway_uci

Module xml

Source
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_name 🔒
    Local part of a QName (uci:PingPing).
  • Whether element nesting in text could exceed limit, without building a tree.
  • parse_text 🔒
    Carry XML text as the JSON shape its declared type calls for.
  • Walks one XML element as type_name. xsi:type overrides the declared type when it names a complex type.
  • Bytes consumed by a start tag, and whether it closed itself.
  • skip_past 🔒
    Bytes consumed if rest opens with open, through the matching close.
  • Serializes message as UCI XML with the OAM namespace on the root.
  • Writes one element. The OAM namespace is on the root; xsi:type is written when Complex::type_name is set.
  • OAM default namespace, and xmlns:xsi when the root names a concrete type.