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

Part 1 The Basic for Developing Application> Chapter 3 Data Search Methods> 3.6 Extracting Search Results> 3.6.1 Extracting Data in XML Format

3.6.1.1 Extracting an Entire XML Document

An entire XML document can be extracted by specifying only '/' in the return expression.

Example

Extract an entire XML document:
/

Result

<doc>
  <employee>
    <eno>19980120</eno>
    <name>Sara Jones</name>
    <sno>1001</sno>
    <phone>2201-1101</phone>
    <email>sara.jones@shunsaku.fujitsu.com.au</email>
  </employee>
  <basic>
    <date>2006/02/16</date>
    <expense>$72.00</expense>
  </basic>
  <detail>
    <destination>Head Office</destination>
    <area>Clearview, Belair, Adelaide</area>
    <purpose>Regular project meeting</purpose>
    <train>$66.00</train>
    <taxi>$6.00</taxi>
    <hotel></hotel>
    <comment>None</comment>
  </detail>
  <report>Must create and report a sales results chart by next meeting</report>
</doc>

When a sort expression is specified, XML documents found using the search expression will be returned in the order determined by the sort expression.

Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2006