ddn.odf.xml
ODF XML adapter layer.
Wraps ddn.data.xml behind an ODF-specific XML API for namespace-aware parsing, element lookup, attribute reading/writing, text-node handling, and deterministic serialization.
Functions 11
fn
string serializeOdfXml(XmlDocument doc, bool pretty = false)Serializes an XmlDocument to a string.fn
XmlElement findChild(XmlElement parent, string localName,
string nsUri = null)Finds the first child element matching the given local name and optional namespace URI.fn
XmlElement[] findChildren(XmlElement parent, string localName,
string nsUri = null)Collects all child elements matching the given local name and optional namespace URI.fn
string requireAttr(XmlElement elem, string attrName,
string location = "")Retrieves a required attribute value from an element.fn
string getAttr(XmlElement elem, string attrName,
string defaultValue = "")Retrieves an attribute value from an element, returning a default when absent.fn
auto resolveQName(XmlElement elem, string qname)Resolves a qualified name (prefix:local) to its namespace URI and local name.