Accept TEXT and CDATA nodes in XMLTABLE's column_expression.
Alvaro Herrera <alvherre@alvh.no-ip.org>
Accept TEXT and CDATA nodes in XMLTABLE's column_expression. Column expressions that match TEXT or CDATA nodes must return the contents of the nodes themselves, not the content of non-existing children (i.e. the empty string). Author: Markus Winand Reported-by: Markus Winand Reviewed-by: Álvaro Herrera Discussion: https://postgr.es/m/0684A598-002C-42A2-AE12-F024A324EAE4@winand.at
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/xml.c | modified | +14 −10 |
| src/test/regress/expected/xml_2.out | modified | +6 −6 |
| src/test/regress/expected/xml.out | modified | +6 −6 |
| src/test/regress/sql/xml.sql | modified | +2 −2 |
Discussion
- XML/XPath issues: text/CDATA in XMLTABLE, XPath evaluated with wrong context 10 messages · 2018-03-27 → 2019-03-07