This tutorial teaches you how to create and register an XML schema on DB2. You can create an XML schema and then edit it using the XML schema editor. Using the XML schema editor, you can specify element names that indicates which elements are allowed in an XML file, and in which combinations. Use the Register an XML Schema wizard to register an XML schema on a DB2 database. From the Table editor, you can then validate XML data against a registered XML schema that is used for decomposition.
db2 create db xmldb using codeset utf8 territory us
The name of the database is XMLDB. The territory identifier shows the code that is used by the database manager internally to provide region-specific support. All territory codes are supported. In the command above, the territory identifier is the United States. In order to create the database, you must have SYSADM or SYSCTRL authorization.