From: Peter Eisentraut Date: Tue, 29 Jun 2010 00:03:39 +0000 (+0000) Subject: Add note clarifying that XML fragments don't accept DTDs X-Git-Tag: REL9_0_BETA3~61 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e849b49406c04e371da2289da31f2e63044cd32a;p=postgresql Add note clarifying that XML fragments don't accept DTDs per complaint from Craig Ringer --- diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml index 59a46ad0a3..42907791ca 100644 --- a/doc/src/sgml/datatype.sgml +++ b/doc/src/sgml/datatype.sgml @@ -1,4 +1,4 @@ - + Data Types @@ -3985,6 +3985,17 @@ SET xmloption TO { DOCUMENT | CONTENT }; The default is CONTENT, so all forms of XML data are allowed. + + + + With the default XML option setting, you cannot directly cast + character strings to type xml 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 XMLPARSE or change the XML option. + + +