home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
Neueste VersionenFixList
11.1.0.7 FixList
10.5.0.9 FixList
10.1.0.6 FixList
9.8.0.5 FixList
9.7.0.11 FixList
9.5.0.10 FixList
9.1.0.12 FixList
Haben Sie Probleme? - Kontaktieren Sie uns.
Kostenlos registrieren anmeldung-x26
Kontaktformular kontakt-x26

DB2 - Problembeschreibung

Problem IC62210 Status: Geschlossen

SQL16196N when validating XML document with an anonymous complex type

Produkt:
DB2 FOR LUW / DB2FORLUW / 970 - DB2
Problembeschreibung:
Validation of an XML document fails with SQL16196N when an 
element has an anonymous complex type that is an extension of a 
complex type in a different namespace. 
 
Suppose the following two schema files are registered in DB2. 
Validation of documents against these schemas will fail with 
SQL16196N because element "Alert" contains an anonynous complex 
type that extends complex type "gargamelType" in namespace "g". 
 
             1. 
smerf.xsd: 
<?xml version="1.0" encoding="UTF-8"?> 
<schema xmlns="http://www.w3.org/2001/XMLSchema" 
      xmlns:g="http://gargamel" 
     targetNamespace="http://smerf" 
    elementFormDefault="qualified"> 
<import namespace="http://gargamel" 
     schemaLocation="gargamel.xsd" /> 
<element name="Alert" > 
  <complexType> 
      <complexContent> 
         <extension base="g:gargamelType" /> 
    </complexContent> 
</complexType> 
</element> 
</schema> 
 
2.gargamel.xsd : 
 
<?xml version="1.0" encoding="UTF-8"?> 
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
        targetNamespace="http://gargamel" 
       elementFormDefault="qualified" > 
<xsd:complexType name="gargamelType"> 
  <xsd:sequence> 
     <xsd:element name="Data"> 
          <xsd:complexType>   <!-- anonymous --> 
              <xsd:sequence> 
                  <xsd:element name="Object" 
                            type="xsd:string"/> 
              </xsd:sequence> 
          </xsd:complexType> 
      </xsd:element> 
 </xsd:sequence> 
</xsd:complexType> 
</xsd:schema>
Problem-Zusammenfassung:
**************************************************************** 
* USERS AFFECTED:                                              * 
* ALL                                                          * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* Validation of an XML document fails with SQL16196N when an   * 
* element has an anonymous complex type that is an extension   * 
* of a complex type in a different namespace.                  * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Problem was first fixed in Version 9.7 Fix Pack 1            * 
****************************************************************
Local-Fix:
Point to the base type directly to successfully validate the 
document. 
 
In smerf.xsd, define element "Alert" as follows: 
<element name="Alert" type="g:gargamelType"/>
verfügbare FixPacks:
DB2 Version 9.7 Fix Pack 1 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 2 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 3 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 3a for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 4 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 5 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 7 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9a for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 6 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 8 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 10 for Linux, UNIX, and Windows

Lösung
An element that has an anonymous complex type that references a 
complex type extension in another namespace will not cause 
validation to fail.
Workaround
keiner bekannt / siehe Local-Fix
Weitere Daten
Datum - Problem gemeldet    :
Datum - Problem geschlossen :
Datum - der letzten Änderung:
24.07.2009
04.01.2010
04.01.2010
Problem behoben ab folgender Versionen (IBM BugInfos)
9.7.FP1
Problem behoben lt. FixList in der Version
9.7.0.1 FixList