declare namespace a = "http://www.openapplications.org/oagis/9";
{
for $row in doc('converter:file:///c:/a/flat/m2.conv?file:///c:/a/flat/m2.txt')/root/row
return
{
$row/id/text()
}
{
$row/name/text()
}
{
$row/address/text()
}
{
$row/city/text()
}
{
for $detail in $row/details/detail
return
{
$detail/item/text()
}
{
$detail/des/text()
}
{
$detail/qty/text()
}
}
}
(: Stylus Studio meta-information - (c) 2004-2008. Progress Software Corporation. All rights reserved.
:)