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.



-------------------------------------------------------------------------
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