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

fnXmlDocument parseOdfXml(const(ubyte)[] xmlBytes)Parses raw XML bytes into an XmlDocument.
fnXmlDocument parseOdfXmlString(string xml)Parses an XML string into an XmlDocument.
fnstring serializeOdfXml(XmlDocument doc, bool pretty = false)Serializes an XmlDocument to a string.
fnXmlElement findChild(XmlElement parent, string localName, string nsUri = null)Finds the first child element matching the given local name and optional namespace URI.
fnXmlElement[] findChildren(XmlElement parent, string localName, string nsUri = null)Collects all child elements matching the given local name and optional namespace URI.
fnstring requireAttr(XmlElement elem, string attrName, string location = "")Retrieves a required attribute value from an element.
fnstring getAttr(XmlElement elem, string attrName, string defaultValue = "")Retrieves an attribute value from an element, returning a default when absent.
fnstring textContent(XmlElement elem)Extracts the concatenated text content of an element.
fnauto resolveQName(XmlElement elem, string qname)Resolves a qualified name (prefix:local) to its namespace URI and local name.
fnptrdiff_t findColon(string s) @safe pure nothrow
fnptrdiff_t findStr(string s, string sub) @safe pure nothrow