DECLARE
  xmldiff_out XMLType;
BEGIN

SELECT XMLDIFF(
XMLTYPE('<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="5.2.1" xml:lang="cs">
	<xs:element name="Party" type="PartyType"/>
	<xs:complexType name="PartyType">
		<xs:sequence>
			<xs:element name="PartyIdentification" type="PartyIdentificationType"/>
			<xs:element name="PartyName" type="PartyNameType"/>
			<xs:element name="PostalAddress" type="PostalAddressType"/>
			<xs:element name="PartyTaxScheme" type="PartyTaxSchemeType" minOccurs="0"/>
			<xs:element name="RegisterIdentification" type="RegisterIdentificationType" minOccurs="0"/>
			<xs:element name="Contact" type="ContactType" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="IDType">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<xs:complexType name="PartyIdentificationType">
		<xs:sequence>
			<xs:element name="UserID" type="UserIDType" minOccurs="0"/>
			<xs:element name="CatalogFirmIdentification" type="CatalogFirmIdentificationType" minOccurs="0"/>
			<xs:element name="ID" type="IDType"/>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="UserIDType">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<xs:simpleType name="CatalogFirmIdentificationType">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<xs:complexType name="PartyNameType">
		<xs:sequence>
			<xs:element name="Name" type="NameType"/>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="NameType">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<xs:complexType name="PostalAddressType">
		<xs:sequence>
			<xs:element name="StreetName" type="StreetNameType"/>
			<xs:element name="BuildingNumber" type="BuildingNumberType"/>
			<xs:element name="CityName" type="CityNameType"/>
			<xs:element name="PostalZone" type="PostalZoneType"/>
			<xs:element name="Country" type="CountryType"/>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="StreetNameType">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<xs:simpleType name="BuildingNumberType">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<xs:simpleType name="CityNameType">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<xs:simpleType name="PostalZoneType">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<xs:complexType name="CountryType">
		<xs:sequence>
			<xs:element name="IdentificationCode" type="IdentificationCodeType"/>
			<xs:element name="Name" type="NameType"/>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="IdentificationCodeType">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<xs:complexType name="PartyTaxSchemeType">
		<xs:sequence>
			<xs:element name="CompanyID" type="CompanyIDType"/>
			<xs:element name="TaxScheme" type="TaxSchemeType"/>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="CompanyIDType">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<xs:simpleType name="TaxSchemeType">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<xs:complexType name="RegisterIdentificationType">
		<xs:sequence>
			<xs:element name="RegisterKeptAt" type="RegisterKeptAtType"/>
			<xs:element name="RegisterFileRef" type="RegisterFileRefType"/>
			<xs:element name="RegisterDate" type="RegisterDateType"/>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="RegisterKeptAtType">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<xs:simpleType name="RegisterFileRefType">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<xs:simpleType name="RegisterDateType">
		<xs:restriction base="xs:date"/>
	</xs:simpleType>
	<xs:complexType name="ContactType">
		<xs:sequence>
			<xs:element name="Name" type="NameType" minOccurs="0"/>
			<xs:element name="Telephone" type="TelephoneType" minOccurs="0"/>
			<xs:element name="ElectronicMail" type="ElectronicMailType" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="TelephoneType">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<xs:simpleType name="ElectronicMailType">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
</xs:schema>
'),
XMLTYPE('<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="5.2.1" xml:lang="cs">
	<xs:element name="Party" type="PartyType"/>
	<xs:complexType name="PartyType">
		<xs:sequence>
			<xs:element name="PartyIdentification" type="PartyIdentificationType"/>
			<xs:element name="PartyName" type="PartyNameType"/>
			<xs:element name="PostalAddress" type="PostalAddressType"/>
			<xs:element name="PartyTaxScheme" type="PartyTaxSchemeType" minOccurs="0"/>
			<xs:element name="RegisterIdentification" type="RegisterIdentificationType" minOccurs="0"/>
			<xs:element name="Contact" type="ContactType" minOccurs="0"/>
			<xs:element name="Contact" type="InvoiceContactType" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="IDType">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<xs:complexType name="PartyIdentificationType">
		<xs:sequence>
			<xs:element name="UserID" type="UserIDType" minOccurs="0"/>
			<xs:element name="CatalogFirmIdentification" type="CatalogFirmIdentificationType" minOccurs="0"/>
			<xs:element name="ID" type="IDType"/>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="UserIDType">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<xs:simpleType name="CatalogFirmIdentificationType">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<xs:complexType name="PartyNameType">
		<xs:sequence>
			<xs:element name="Name" type="NameType"/>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="NameType">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<xs:complexType name="PostalAddressType">
		<xs:sequence>
			<xs:element name="StreetName" type="StreetNameType"/>
			<xs:element name="BuildingNumber" type="BuildingNumberType"/>
			<xs:element name="CityName" type="CityNameType"/>
			<xs:element name="PostalZone" type="PostalZoneType"/>
			<xs:element name="Country" type="CountryType"/>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="StreetNameType">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<xs:simpleType name="BuildingNumberType">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<xs:simpleType name="CityNameType">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<xs:simpleType name="PostalZoneType">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<xs:complexType name="CountryType">
		<xs:sequence>
			<xs:element name="IdentificationCode" type="IdentificationCodeType"/>
			<xs:element name="Name" type="NameType" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="IdentificationCodeType">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<xs:complexType name="PartyTaxSchemeType">
		<xs:sequence>
			<xs:element name="CompanyID" type="CompanyIDType"/>
			<xs:element name="TaxScheme" type="TaxSchemeType"/>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="CompanyIDType">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<xs:simpleType name="TaxSchemeType">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<xs:complexType name="RegisterIdentificationType">
		<xs:sequence>
			<xs:element name="RegisterKeptAt" type="RegisterKeptAtType"/>
			<xs:element name="RegisterFileRef" type="RegisterFileRefType"/>
			<xs:element name="RegisterDate" type="RegisterDateType"/>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="RegisterKeptAtType">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<xs:simpleType name="RegisterFileRefType">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<xs:simpleType name="RegisterDateType">
		<xs:restriction base="xs:date"/>
	</xs:simpleType>
	<xs:complexType name="ContactType">
		<xs:sequence>
			<xs:element name="Name" type="NameType" minOccurs="0"/>
			<xs:element name="Telephone" type="TelephoneType" minOccurs="0"/>
			<xs:element name="ElectronicMail" type="ElectronicMailType" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="TelephoneType">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<xs:simpleType name="ElectronicMailType">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
</xs:schema>
')
)
INTO xmldiff_out FROM DUAL; 

DBMS_XMLSCHEMA.inPlaceEvolve('http://xmlns.oracle.com/xml/invoice/partytype.xsd', xmldiff_out);

END;