Ilya Taranov a écrit :
> dahu <[EMAIL PROTECTED]> writes:
>
>   
>> Hi all,
>>
>> im a noob in sedna :)
>>
>> my goal : php/mysql => php/xmldbnative
>>
>> after some difficult, i succesfully installed it on a gentoo 32 (and i 
>> tested on 64 , the .sh works)
>> the php-api was hard to compile with gentoo emerge but now it's ok
>> (if someone want to test sedna on a dedicated server , i took an ovh.com 
>> "kimsufi" : 29€/month - gentoo 32, php 5.2.1)
>>
>> now my question to Sedna team : 
>>
>> are you able to update the php-api with one function :
>> $results=sedna_result_XML([SEDNA-CONN connection], [String 
>> PARENT_NODE_NAME]) ;
>> that will return an XML in the PARENT_NODE_NAME if needed
>>
>> ex:
>> $results=sedna_result_XML("MyResult") ;
>> =>
>> <MyResult>
>>        ... Xqueryresult ...
>> </MyResult>
>>
>> to let easly do:
>> $doc = DOMDocument::loadXML($results);
>>
>> and then be able to manipulate the dom object
>>
>> i think it can be powerfull , no ?
>>
>> Best regards
>>
>> LAINE Pierre-jean
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Sedna-discussion mailing list
>> Sedna-discussion <at> lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/sedna-discussion
>>
>>     
>
>
> Hi.
>
> We will certainly consider the possibility of adding such function to php 
> driver.
>
> Actually, I think that is slightly out of the driver's ideology. It is easier 
> to either write your own wrapper for sedna_result, that concatinates strings 
> like: 
>
> function sedna_exec_XML($query, $node_name) {
>   sedna_execute($query);
>   return "<$node_name>" . implode(" ", sedna_result_array()) . 
> "</$node_name>");
> }
>
> Or write the appropriate query (in fact that is what the XQuery constructors 
> are designed for). Like "<result> { doc('a')//items } </result>" instead of 
> "doc
> ('a')//items". But this method may slow down the execution of the query 
> seriously in current version of Sedna.
>
> Best regards, 
>   Ilya Taranov, Sedna Team.
>
>   

yep, that's what i done :)

Im discovering sedna (im so a sedna-noob) , using only php

for my first steps, the first thing i noticed  is that a new db is empty 
AND refuse an update insert xquery for init. That mean that the only way 
to construct a db is passing by the way of a LOAD .xml => no way of a 
script initializing a new db
but may i missed something ?

PJ

-- 
--------------------------------------
DAHU.FR - Toutes prestations Internet
335 rue charles cabaud - 73290 MOTTE SERVOLEX
04 79 26 09 68 ou 06 16 537 307
--------------------------------------


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Sedna-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sedna-discussion

Reply via email to