xnode
Implementation of XML using DOM.
pg_xnode · Implementation of XML using DOM.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101843 | xnode | pg_xnode | 0.7.2 | TYPE | PostgreSQL | C |
Usage
Sources:
- Official upstream README
- Official extension control file (xnode.control)
- Official extension SQL (xnode.sql)
xnode — Implementation of XML using DOM. Use it when application data needs this type, domain, or its operators. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.
Core Workflow
Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.
Important Objects
add(doc, path, node, add_mode)is an extension function and returnsdoc.children(node)is an extension function and returnsnode[].doc_in(cstring)is an extension function and returnsdoc.doc_out(doc)is an extension function and returnscstring.doc_to_node(doc)is an extension function and returnsnode.element(text, text[][2], node)is an extension function and returnsnode.fragment_sfunc(node, node)is an extension function and returnsnode.node(xnt, text[], record)is an extension function and returnsnode.node_debug_print(node)is an extension function and returnstext.node_in(cstring)is an extension function and returnsnode.node_kind(node)is an extension function and returnstext.node_out(node)is an extension function and returnscstring.node_to_doc(node)is an extension function and returnsdoc.path(path, doc)is an extension function and returnspathval.
Requirements and Caveats
- The reviewed control file declares default version
0.7.2. - The control file marks the extension as non-relocatable.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.