help-gift
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[help-GIFT] sub query in CGIFTLink.pm , argument doesn't have children


From: Prawit Chaivong
Subject: [help-GIFT] sub query in CGIFTLink.pm , argument doesn't have children
Date: Sun, 02 Feb 2003 03:59:10 +0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020408

hi , i want to write gift-plugin (in perl lang).
And in the gift-config.mrml told me , which script that will be called (by gift server) when algorithm is "perl link" and main class come from CGIFTLink.pm and in method query that received some parameter that can be translated to this :

{
 element=>'an-element-name',
  attributes=> {
                           'attribute-1'=>'value1',
                            'attribute-2'=>'value2'
                       },
  children=> [
                           {
                               element=>'an-element-name',
                               attributes=> {
'attribute-1'=>'value1', 'attribute-2'=>'value2'
                                                       },
                              children=> []
                               }
                               ......
                       ]
}

So i Try to print out parameter that method query received , I don't found children
what i gonna do ,if  query message is

<query-step query-step-id="1" algorothm-id="a-perl" result-size="30">
   <cui-text-query query-string="hello">
</query-step>

because parameter that method "query" received doesn't have a child
That mean we can't get <cui-text-query query-string="hello"> because this element should be children of of value that "query" received

thank you very much
Cheer...





reply via email to

[Prev in Thread] Current Thread [Next in Thread]