*** src/backend/utils/adt/xml.c.orig	2007-11-09 16:33:56.000000000 -0200
--- src/backend/utils/adt/xml.c	2007-11-09 17:01:50.000000000 -0200
***************
*** 2595,2605 ****
  
  		if (!tableforest)
  			appendStringInfo(&result,
! 							 "    <xsd:element name=\"%s\" type=\"%s\" />\n",
  							 xmltn, tabletypename);
  		else
  			appendStringInfo(&result,
! 							 "    <xsd:element name=\"%s\" type=\"%s\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n",
  							 xmltn, tabletypename);
  	}
  
--- 2595,2605 ----
  
  		if (!tableforest)
  			appendStringInfo(&result,
! 							 "    <xsd:element name=\"%s\" type=\"%s\"/>\n",
  							 xmltn, tabletypename);
  		else
  			appendStringInfo(&result,
! 							 "    <xsd:element name=\"%s\" type=\"%s\" minOccurs=\"0\" maxOccurs=\"unbounded\"/>\n",
  							 xmltn, tabletypename);
  	}
  
***************
*** 2656,2662 ****
  																		NULL);
  
  		appendStringInfo(&result,
! 						 "    <xsd:element name=\"%s\" type=\"%s\" />\n",
  						 xmlsn, schematypename);
  	}
  
--- 2656,2662 ----
  																		NULL);
  
  		appendStringInfo(&result,
! 						 "    <xsd:element name=\"%s\" type=\"%s\"/>\n",
  						 xmlsn, schematypename);
  	}
