Interstage Shunsaku Data Manager Application Development Guide - Microsoft(R) Windows(R) 2000/ Microsoft(R) Windows Server(TM) 2003 - - UNIX -
Contents Index PreviousNext

Appendix L XML Conversion Function Mapping Rules> L.3 Mapping Rule Conversion Examples

L.3.1 Extracting Unstructured Data in XML Format

The following example shows how to extract unstructured XML documents.

Results Table

The following mapping rule extracts data from the specified column of the first row in the results table, and generates the XML document as an element of the PERSON root tag.

Mapping Rule

<?xml version="1.0"?>
<MappingRule>
<parentRule id="p1" tagname="PERSON" />
<columnRule id="c1" colname="A" tagname="NUM" parent="p1" />
<columnRule id="c2" colname="B" tagname="NAME" parent="p1" />
<columnRule id="c3" colname="C" tagname="JOB" parent="p1" />
</MappingRule>

This mapping rule outputs the following XML document:

[Figure L-3 XML Output Data]


Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2006