XML functions #5901
beikov
started this conversation in
Design Proposals
XML functions
#5901
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The idea is to add some functions to query and manipulate XML.
Also see https://www.postgresql.org/docs/10/functions-xml.html
Construction
xmlelement(name,v1[,vn]*)
- constructor function that creates an xml elementxmlattributes(k1,v1[,kn,vn]*)
- constructor function that creates a xml attributesxmlcomment(comment)
- constructor function that creates a xml commentxmlparse(payload)
- parses an xml rootQuery
xmlagg(xml) within group (...)
- aggregates xml elements into a xml forestxmlexists(xquery, xml)
true if the XQuery expression in the first argument returns any nodes, and false otherwisexpath(xpath, xml)
returns an array of xml values that match the XPath expressionxpath_exists(xpath, xml)
true if the XPath expression in the first argument returns any nodes, and false otherwiseManipulation
xmlconcat(xml, xml)
Track HHH-18497 for progress.
Beta Was this translation helpful? Give feedback.
All reactions