Peter Eisentraut
0b75afda92
Mapping schemas and databases to XML and XML Schema.
...
Refactor and document the remaining mapping code.
2007-04-01 09:00:26 +00:00
Bruce Momjian
e651bcf3f6
Add xmlpath() to evaluate XPath expressions, with namespaces support.
...
Nikolay Samokhvalov
2007-03-22 20:14:58 +00:00
Peter Eisentraut
355e05ab41
Functions for mapping table data and table schemas to XML (a.k.a. XML export)
2007-02-16 07:46:55 +00:00
Peter Eisentraut
eb19144894
Add support for optionally escaping periods when converting SQL identifiers
...
to XML names, which will be required for supporting XML export.
2007-02-11 22:18:16 +00:00
Peter Eisentraut
ec020e1ceb
Implement XMLSERIALIZE for real. Analogously, make the xml to text cast
...
observe the xmloption.
Reorganize the representation of the XML option in the parse tree and the
API to make it easier to manage and understand.
Add regression tests for parsing back XML expressions.
2007-02-03 14:06:56 +00:00
Peter Eisentraut
22bd156ff0
Various fixes in the logic of XML functions:
...
- Add new SQL command SET XML OPTION (also available via regular GUC) to
control the DOCUMENT vs. CONTENT option in implicit parsing and
serialization operations.
- Subtle corrections in the handling of the standalone property in
xmlroot().
- Allow xmlroot() to work on content fragments.
- Subtle corrections in the handling of the version property in
xmlconcat().
- Code refactoring for producing XML declarations.
2007-01-25 11:53:52 +00:00
Peter Eisentraut
b4c8d49036
Fix xmlconcat by properly merging the XML declarations. Add aggregate
...
function xmlagg.
2007-01-20 09:27:20 +00:00
Peter Eisentraut
4b48ad4fb2
Add support for converting binary values (i.e. bytea) into xml values,
...
with new GUC parameter "xmlbinary" that controls the output encoding, as
per SQL/XML standard.
2007-01-19 16:58:46 +00:00
Peter Eisentraut
2f8f76bcd5
Add support for xmlval IS DOCUMENT expression.
2007-01-14 13:11:54 +00:00
Peter Eisentraut
8b35795362
Use XML output escaping also in XMLFOREST.
2007-01-12 21:47:27 +00:00
Peter Eisentraut
c0e977c18f
Use libxml's xmlwriter API for producing XML elements, instead of doing
...
our own printing dance. This does a better job of quoting and escaping the
values.
2007-01-10 20:33:54 +00:00
Peter Eisentraut
d807c7ef3f
Some fine-tuning of xmlpi in corner cases:
...
- correct error codes
- do syntax checks in correct order
- strip leading spaces of argument
2007-01-07 22:49:56 +00:00
Bruce Momjian
29dccf5fe0
Update CVS HEAD for 2007 copyright. Back branches are typically not
...
back-stamped for this.
2007-01-05 22:20:05 +00:00
Peter Eisentraut
8832f0f358
De-escape XML names when reverse-compiling XML expressions.
2006-12-29 10:50:22 +00:00
Peter Eisentraut
ad1425ae43
Add send and recv functions for xml type.
2006-12-28 14:28:36 +00:00
Tom Lane
c957c0bac7
Code review for XML patch. Instill a bit of sanity in the location of
...
the XmlExpr code in various lists, use a representation that has some hope
of reverse-listing correctly (though it's still a de-escaping function
shy of correctness), generally try to make it look more like Postgres
coding conventions.
2006-12-24 00:29:20 +00:00
Tom Lane
64974613c9
Suppress various compiler warnings in new xml code.
2006-12-23 04:56:50 +00:00
Peter Eisentraut
8c1de5fb00
Initial SQL/XML support: xml data type and initial set of functions.
2006-12-21 16:05:16 +00:00