pub fn parse_xml_tree(xml: &str) -> Result<DdsXmlDocument, XmlError>Expand description
Parses a DDS-XML 1.0 document gemaess §7.1.
Wohlgeformtheits-Garantien:
- XML-Declaration optional (Spec §7.1.1).
- Whitespace-tolerant (roxmltree normalisiert Text).
- Kommentare werden gestrippt (
<!-- ... -->werden von roxmltree nicht als Element-Knoten geliefert). - Namespace-Aware: Top-Level-Namespace wird im Root mitgefuehrt
(Spec §7.3.x:
targetNamespace = http://www.omg.org/spec/DDS-XML).
DoS-Caps gemaess Cluster-F: maximal MAX_LIST_ELEMENTS Children pro
Knoten, maximal MAX_TOTAL_ELEMENTS Knoten insgesamt.
§Errors
XmlError::InvalidXml— XML nicht wohlgeformt.XmlError::LimitExceeded— DoS-Cap getroffen.