Interstage Shunsaku Data Manager Application Development Guide - Microsoft(R) Windows(R) 2000/ Microsoft(R) Windows Server(TM) 2003 - - UNIX - |
Contents
Index
![]() ![]() |
Appendix L XML Conversion Function Mapping Rules | > L.3 Mapping Rule Conversion Examples |
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:
Contents
Index
![]() ![]() |