mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-05 19:09:58 +08:00
Add note clarifying that XML fragments don't accept DTDs
per complaint from Craig Ringer
This commit is contained in:
parent
93c81c6831
commit
e849b49406
@ -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">
|
<chapter id="datatype">
|
||||||
<title>Data Types</title>
|
<title>Data Types</title>
|
||||||
@ -3985,6 +3985,17 @@ SET xmloption TO { DOCUMENT | CONTENT };
|
|||||||
The default is <literal>CONTENT</literal>, so all forms of XML
|
The default is <literal>CONTENT</literal>, so all forms of XML
|
||||||
data are allowed.
|
data are allowed.
|
||||||
</para>
|
</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>
|
||||||
|
|
||||||
<sect2>
|
<sect2>
|
||||||
|
Loading…
Reference in New Issue
Block a user