From 1246d797e4b21e5bf4267e8b663057b92258b728 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 16 Sep 2006 16:18:11 +0000 Subject: Rename xml_valid() to xml_is_well_formed(), but provide a temporary alias with the old name for backwards compatibility. Per discussion, the old name is actively wrong because validity and well-formedness have different meanings in XML. --- doc/src/sgml/datatype.sgml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml index ac632ee3778..5bca7c418f3 100644 --- a/doc/src/sgml/datatype.sgml +++ b/doc/src/sgml/datatype.sgml @@ -1,4 +1,4 @@ - + Data Types @@ -3345,8 +3345,8 @@ SELECT * FROM pg_attribute /contrib/xml2 has a function called - xml_valid() that can be used in a CHECK - constraint to enforce that a field contains valid XML. + xml_is_well_formed() that can be used in a CHECK + constraint to enforce that a field contains well-formed XML. It does not support validation against a specific XML schema. A server-side language with XML capabilities could be used to do schema-specific XML checks. -- cgit v1.2.3