|
7 | 7 | * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
|
8 | 8 | * Portions Copyright (c) 1994, Regents of the University of California
|
9 | 9 | *
|
10 |
| - * $PostgreSQL: pgsql/src/backend/utils/adt/xml.c,v 1.55 2007/11/10 18:51:20 tgl Exp $ |
| 10 | + * $PostgreSQL: pgsql/src/backend/utils/adt/xml.c,v 1.56 2007/11/10 19:29:54 tgl Exp $ |
11 | 11 | *
|
12 | 12 | *-------------------------------------------------------------------------
|
13 | 13 | */
|
@@ -2707,11 +2707,11 @@ map_sql_schema_to_xmlschema_types(Oid nspid, List *relid_list, bool nulls,
|
2707 | 2707 |
|
2708 | 2708 | if (!tableforest)
|
2709 | 2709 | appendStringInfo(&result,
|
2710 |
| - " <xsd:element name=\"%s\" type=\"%s\" />\n", |
| 2710 | + " <xsd:element name=\"%s\" type=\"%s\"/>\n", |
2711 | 2711 | xmltn, tabletypename);
|
2712 | 2712 | else
|
2713 | 2713 | appendStringInfo(&result,
|
2714 |
| - " <xsd:element name=\"%s\" type=\"%s\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n", |
| 2714 | + " <xsd:element name=\"%s\" type=\"%s\" minOccurs=\"0\" maxOccurs=\"unbounded\"/>\n", |
2715 | 2715 | xmltn, tabletypename);
|
2716 | 2716 | }
|
2717 | 2717 |
|
@@ -2773,7 +2773,7 @@ map_sql_catalog_to_xmlschema_types(List *nspid_list, bool nulls,
|
2773 | 2773 | NULL);
|
2774 | 2774 |
|
2775 | 2775 | appendStringInfo(&result,
|
2776 |
| - " <xsd:element name=\"%s\" type=\"%s\" />\n", |
| 2776 | + " <xsd:element name=\"%s\" type=\"%s\"/>\n", |
2777 | 2777 | xmlsn, schematypename);
|
2778 | 2778 | }
|
2779 | 2779 |
|
@@ -3111,7 +3111,7 @@ map_sql_type_to_xmlschema_type(Oid typeoid, int typmod)
|
3111 | 3111 | base_typeoid = getBaseTypeAndTypmod(typeoid, &base_typmod);
|
3112 | 3112 |
|
3113 | 3113 | appendStringInfo(&result,
|
3114 |
| - " <xsd:restriction base=\"%s\">\n", |
| 3114 | + " <xsd:restriction base=\"%s\"/>\n", |
3115 | 3115 | map_sql_type_to_xml_name(base_typeoid, base_typmod));
|
3116 | 3116 | }
|
3117 | 3117 | break;
|
|
0 commit comments