Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e849b49

Browse files
committed
Add note clarifying that XML fragments don't accept DTDs
per complaint from Craig Ringer
1 parent 93c81c6 commit e849b49

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

doc/src/sgml/datatype.sgml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.248 2010/04/03 07:22:53 petere Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.249 2010/06/29 00:03:39 petere Exp $ -->
22

33
<chapter id="datatype">
44
<title>Data Types</title>
@@ -3985,6 +3985,17 @@ SET xmloption TO { DOCUMENT | CONTENT };
39853985
The default is <literal>CONTENT</literal>, so all forms of XML
39863986
data are allowed.
39873987
</para>
3988+
3989+
<note>
3990+
<para>
3991+
With the default XML option setting, you cannot directly cast
3992+
character strings to type <type>xml</type> if they contain a
3993+
document type declaration, because the definition of XML content
3994+
fragment does not accept them. If you need to do that, either
3995+
use <literal>XMLPARSE</literal> or change the XML option.
3996+
</para>
3997+
</note>
3998+
39883999
</sect2>
39894000

39904001
<sect2>

0 commit comments

Comments
 (0)