aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2010-06-29 00:03:39 +0000
committerPeter Eisentraut <peter_e@gmx.net>2010-06-29 00:03:39 +0000
commite849b49406c04e371da2289da31f2e63044cd32a (patch)
treed43a342c7d43d89870cd94d3234ec8f466fbb822
parent93c81c68310e0065caabada5d4cea87d2dfc2897 (diff)
downloadpostgresql-e849b49406c04e371da2289da31f2e63044cd32a.tar.gz
postgresql-e849b49406c04e371da2289da31f2e63044cd32a.zip
Add note clarifying that XML fragments don't accept DTDs
per complaint from Craig Ringer
-rw-r--r--doc/src/sgml/datatype.sgml13
1 files changed, 12 insertions, 1 deletions
diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml
index 59a46ad0a3a..42907791ca9 100644
--- a/doc/src/sgml/datatype.sgml
+++ b/doc/src/sgml/datatype.sgml
@@ -1,4 +1,4 @@
-<!-- $PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.248 2010/04/03 07:22:53 petere Exp $ -->
+<!-- $PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.249 2010/06/29 00:03:39 petere Exp $ -->
<chapter id="datatype">
<title>Data Types</title>
@@ -3985,6 +3985,17 @@ SET xmloption TO { DOCUMENT | CONTENT };
The default is <literal>CONTENT</literal>, so all forms of XML
data are allowed.
</para>
+
+ <note>
+ <para>
+ With the default XML option setting, you cannot directly cast
+ character strings to type <type>xml</type> if they contain a
+ document type declaration, because the definition of XML content
+ fragment does not accept them. If you need to do that, either
+ use <literal>XMLPARSE</literal> or change the XML option.
+ </para>
+ </note>
+
</sect2>
<sect2>