<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="XML database - Page 4 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=XML_database&amp;p=3">1.Previous</a><br />
<a accesskey="3" href="page.php?w=XML_database&amp;p=5">3.Next</a>
</p>
<p>#XML is "shredded" into a series of tables based on a schema<br/>
#XML is stored into a native XML Type as defined by ISO Standard <a href="page.php?w=SQL">9075-14</a></p>

<p>RDBMS that support the ISO XML Type are:<br/>
#IBM DB2 (pureXML)<br/>
#Microsoft SQL Server<br/>
#Oracle Database<br/>
#PostgreSQL</p>

<p>Typically an XML-enabled database is best suited where the majority of data are non-XML. For datasets where the majority of data are XML, a native XML database is better suited.</p>

<p><big> Example of XML Type Query in IBM DB2 SQL </big></p>
<p><syntaxhighlight lang="sql">select   id, vol, xmlquery('$j/name', passing journal as "j") as name from   journalswhere    xmlexists('$j[licence="CreativeCommons"]', passing journal as "j")</syntaxhighlight></p><p>
<a accesskey="1" href="page.php?w=XML_database&amp;p=3">1.Previous</a><br />
<a accesskey="3" href="page.php?w=XML_database&amp;p=5">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
