*** ./src/backend/utils/adt/xml.c.orig	2007-11-23 02:17:55.000000000 -0200
--- ./src/backend/utils/adt/xml.c	2007-11-23 02:21:31.000000000 -0200
***************
*** 3019,3025 ****
  
  			case INT4OID:
  				appendStringInfo(&result,
! 								 "  <xsd:restriction base='xsd:int'>\n"
  								 "    <xsd:maxInclusive value=\"%d\" />\n"
  								 "    <xsd:minInclusive value=\"%d\" />\n"
  								 "  </xsd:restriction>\n",
--- 3019,3025 ----
  
  			case INT4OID:
  				appendStringInfo(&result,
! 								 "  <xsd:restriction base=\"xsd:int\">\n"
  								 "    <xsd:maxInclusive value=\"%d\" />\n"
  								 "    <xsd:minInclusive value=\"%d\" />\n"
  								 "  </xsd:restriction>\n",
***************
*** 3168,3174 ****
  		if (isnull)
  		{
  			if (nulls)
! 				appendStringInfo(result, "  <%s xsi:nil='true' />\n", colname);
  		}
  		else
  			appendStringInfo(result, "  <%s>%s</%s>\n",
--- 3168,3174 ----
  		if (isnull)
  		{
  			if (nulls)
! 				appendStringInfo(result, "  <%s xsi:nil=\"true\" />\n", colname);
  		}
  		else
  			appendStringInfo(result, "  <%s>%s</%s>\n",
