[bdbxml] Document names....

Mark Ethan Trostler <[email protected]>
Newsgroups gmane.comp.db.dbxml.general
Message-ID <BEE9B876.E282%[email protected]>
Howdy,  
    I want to know the names of the documents from which I'm getting
results...
    As long as there's no XML markup in my 'return' statement the name of
the doc can easily be pulled from the Meta Information - however as soon as
there's markup all of the Mea Info is lost.

SO - using the perl API I do a:

                $container->putDocument($key, $file, $update_context);

& then later:

for $a in (collection('junit_goto.dbxml')//testsuite)
return
         $a/@time/text()

I can the fetch the $key of each document from which this value came via:
$value->asDocument->getMetaData('http://www.sleepycat.com/2002/dbxml','name'
, $val);

Groovy!!

HOWEVER as soon as I put markup in the return statement the 'name' meta-data
info is lost:


for $a in (collection('junit_goto.dbxml')//testsuite)
return
<time>
        { $a/@time/text() }
</time>

Bummer!  Iterating thru the MetaDataIterator returns nothing.

So how can I get the key/name of the providing XML doc with markup in the
'return' statement????

Thanks!!
    Mark





------------------------------------------
To remove yourself from this list, send an
email to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.