[Bioperl-l] Concerning Perl module XML::XQL.

Davy Toch Davy.Toch@rug.ac.be
Fri, 04 May 2001 17:23:14 +0200 (CEST)


Hello,

We tried this module, but the statement "@results = $query->solve($doc);" 
produces a complex datastructure, which is shown here (datastructure of 
@results dumped with Data::Dumper-module):

$VAR1 = bless( {
'A' => bless( {
'' => {
'Values' => bless( [], 'XML::DOM::NodeList' ),
'Parent' => $VAR1,
'Doc' => bless( {
'C' => bless( [
$VAR1
], 'XML::DOM::NodeList' ),
'Doc' => $VAR1->{'A'}{''}{'Doc'}
}, 'XML::DOM::Document' )
}
}, 'XML::DOM::NamedNodeMap' ),
'Parent' => $VAR1->{'A'}{''}{'Doc'},
'C' => bless( [
bless( {
'Parent' => $VAR1,
'Data' => '
',
'Doc' => $VAR1->{'A'}{''}{'Doc'}
}, 'XML::DOM::Text' )
], 'XML::DOM::NodeList' ),
'TagName' => 'root',
'Doc' => $VAR1->{'A'}{''}{'Doc'}
}, 'XML::DOM::Element' );

I made a query with a simple xml-file with only this content:
<?xml version='1.0'>
<root>
</root>

...and the query tried to find all the 'root' elements of the xml-file (xql-
statement: "/root"), but my problem now is that the query result is too 
complex. What should I use to process @results further on, for example to have 
only the names of the elements I was querying for?

Yours sincerely,
Davy Toch.