forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: luhuayi <luhuayi@huawei.com> Co-committed-by: luhuayi <luhuayi@huawei.com>
56 lines
9.8 KiB
HTML
56 lines
9.8 KiB
HTML
<a name="EN-US_TOPIC_0000001811634617"></a><a name="EN-US_TOPIC_0000001811634617"></a>
|
|
|
|
<h1 class="topictitle1">Mapping a Table to XML</h1>
|
|
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_section2079310394914"><h4 class="sectiontitle">table_to_xml(tbl regclass, nulls boolean, tableforest boolean, targetns text)</h4><p id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_p979313393919">Description: Maps the contents of a table to XML values.</p>
|
|
<p id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_p1879303916915">Return type: XML</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_section454710109106"><h4 class="sectiontitle">table_to_xmlschema(tbl regclass, nulls boolean, tableforest boolean, targetns text)</h4><p id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_p108718236458">Description: Maps a relational table schema to an XML schema document.</p>
|
|
<p id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_p1419281671019">Return type: XML</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_section32078913119"><h4 class="sectiontitle">table_to_xml_and_xmlschema(tbl regclass, nulls boolean, tableforest boolean, targetns text)</h4><p id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_p78713234453">Description: Maps a relational table to XML values and schema documents.</p>
|
|
<p id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_p138801243101114">Return type: XML</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_section362311111117"><h4 class="sectiontitle">query_to_xml(query text, nulls boolean, tableforest boolean, targetns text)</h4><p id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_p12871223164512">Description: Maps the contents of an SQL query to XML values.</p>
|
|
<p id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_p1248314482119">Return type: XML</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_section5917142113"><h4 class="sectiontitle">query_to_xmlschema(query text, nulls boolean, tableforest boolean, targetns text)</h4><p id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_p198718235458">Description: Maps an SQL query into an XML schema document.</p>
|
|
<p id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_p05325535114">Return type: XML</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_section44601416111117"><h4 class="sectiontitle">query_to_xml_and_xmlschema(query text, nulls boolean, tableforest boolean, targetns text)</h4><p id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_p387823204512">Description: Maps SQL queries to XML values and schema documents.</p>
|
|
<p id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_p2099935716112">Return type: XML</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_section67117618110"><h4 class="sectiontitle">cursor_to_xml(cursor refcursor, count int, nulls boolean, tableforest boolean, targetns text)</h4><p id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_p198792314457">Description: Maps a cursor query to an XML value.</p>
|
|
<p id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_p128872310459">Return type: XML</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_section1535216313117"><h4 class="sectiontitle">cursor_to_xmlschema(cursor refcursor, nulls boolean, tableforest boolean, targetns text)</h4><p id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_p188820239459">Description: Maps a cursor query to an XML schema document.</p>
|
|
<p id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_p1672610151129">Return type: XML</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_section10295171181119"><h4 class="sectiontitle">schema_to_xml(schema name, nulls boolean, tableforest boolean, targetns text)</h4><p id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_p16881223184516">Description: Maps a table in a schema to an XML value.</p>
|
|
<p id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_p97821919101212">Return type: XML</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_section14941195820105"><h4 class="sectiontitle">schema_to_xmlschema(schema name, nulls boolean, tableforest boolean, targetns text)</h4><p id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_p688172364510">Description: Maps a table in a schema to an XML schema document.</p>
|
|
<p id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_p49682421217">Return type: XML</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_section11701056141016"><h4 class="sectiontitle">schema_to_xml_and_xmlschema(schema name, nulls boolean, tableforest boolean, targetns text)</h4><p id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_p19881923174519">Description: Maps a table in a schema to an XML value and a schema document.</p>
|
|
<p id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_p24361309126">Return type: XML</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_section642914534107"><h4 class="sectiontitle">database_to_xml(nulls boolean, tableforest boolean, targetns text)</h4><p id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_p16881623164510">Description: Maps a database table to an XML value.</p>
|
|
<p id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_p78862394512">Return type: XML</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_section10893205011017"><h4 class="sectiontitle">database_to_xmlschema(nulls boolean, tableforest boolean, targetns text)</h4><p id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_p3881923124516">Description: Maps a database table to an XML schema document.</p>
|
|
<p id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_p98819237454">Return type: XML</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_section319114335107"><h4 class="sectiontitle">database_to_xml_and_xmlschema(nulls boolean, tableforest boolean, targetns text)</h4><p id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_p9881423124514">Description: Maps database tables to XML values and schema documents.</p>
|
|
<p id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_p1069723751016">Return type: XML</p>
|
|
</div>
|
|
<div class="note" id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_note8984143162815"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_p4660202812812">The parameters for mapping a table to an XML value are described as follows:</p>
|
|
<ul id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_ul10231132316295"><li id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_li11231112372919"><strong id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_b191453919894435">tbl</strong>: table name.</li><li id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_li142311923192912"><strong id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_b70262006694435">nulls</strong>: indicates whether the output contains null values. If the value is <strong id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_b62755750194435">true</strong>, the null value in the column is <strong id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_b206587967894435"><columnname xsi:nil="true"/></strong>. If the value is <strong id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_b20357623494435">false</strong>, the columns containing null values are omitted from the output.</li><li id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_li1523152315299"><strong id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_b157095907694435">tableforest</strong>: If this parameter is set to <strong id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_b42090749294435">true</strong>, XML fragments are generated. If this parameter is set to <strong id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_b190491872594435">false</strong>, XML files are generated.</li><li id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_li1231122310293"><strong id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_b5211203294435">targetns</strong>: specifies the XML namespace of the desired result. If this parameter is not specified, an empty string is passed.</li><li id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_li1833602214330"><strong id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_b184589291494435">query</strong>: SQL query statement</li><li id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_li2058211438337"><strong id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_b130317327194435">cursor</strong>: cursor name</li><li id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_li1135343910339"><strong id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_b74288492694435">count</strong>: amount of data obtained from the cursor</li><li id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_li5271191218346"><strong id="EN-US_TOPIC_0000001811634617__en-us_topic_0000001450296656_b17265091794435">schema</strong>: schema name</li></ul>
|
|
</div></div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_06_0067.html">XML Functions</a></div>
|
|
</div>
|
|
</div>
|
|
|