Stefan Lischke a �crit:
Hi
Currently i'm working on following:
1. i have a XML Document for example
<XPATH collection="/db/data">/FOO/BAR</XPATH>
2. then i have a XSLT Template which transforms this in a XMLRPC Request for Xindice and send it to an instance of this DB
3. after that i substitute the <XPATH /> Tag with the Result from Xindice
Now my question, how would an answer in XMLRPC look like? maybe <XMLRPCANSWER> <RESULTLIST count="10"> <RESULT>
<STRING>..........first result...........</STRING>
</RESULT>
..........second result .........
<RESULT>
</RESULT>
</RESULTLIST>
</XMLRPCANSWER>
a query like this -> call('db.queryCollection','/db/xedit/rep1','XPath','//table_td',{X => "http://www.xmldb.org/xpath"})
return
<?xml version="1.0"?> <result count="12"> <table_td xmlns:src="http://xml.apache.org/xindice/Query" src:col="/db/xedit/rep1" src:key="fic33.html">l2c1</table_td> <table_td xmlns:src="http://xml.apache.org/xindice/Query" src:col="/db/xedit/rep1" src:key="fic33.html">l2c2</table_td> <table_td xmlns:src="http://xml.apache.org/xindice/Query" src:col="/db/xedit/rep1" src:key="fic33.html">l2c3</table_td> <table_td xmlns:src="http://xml.apache.org/xindice/Query" src:col="/db/xedit/rep1" src:key="fic33.html">l2c4</table_td> <table_td xmlns:src="http://xml.apache.org/xindice/Query" src:col="/db/xedit/rep1" src:key="fic33.html">uynuju</table_td> <table_td xmlns:src="http://xml.apache.org/xindice/Query" src:col="/db/xedit/rep1" src:key="fic33.html" /> <table_td xmlns:src="http://xml.apache.org/xindice/Query" src:col="/db/xedit/rep1" src:key="fic33.html" /> <table_td xmlns:src="http://xml.apache.org/xindice/Query" src:col="/db/xedit/rep1" src:key="fic33.html" /> <table_td xmlns:src="http://xml.apache.org/xindice/Query" src:col="/db/xedit/rep1" src:key="fic33.html">l3c1</table_td> <table_td xmlns:src="http://xml.apache.org/xindice/Query" src:col="/db/xedit/rep1" src:key="fic33.html">l3c2</table_td> <table_td xmlns:src="http://xml.apache.org/xindice/Query" src:col="/db/xedit/rep1" src:key="fic33.html">l3c3</table_td> <table_td xmlns:src="http://xml.apache.org/xindice/Query" src:col="/db/xedit/rep1" src:key="fic33.html">l3c4</table_td> </result>
When i get the Resultlist with the Java Api, there every Result has its own <?xml ?> declaration tag. How is this returned in the xmlrpc reply? which Datatype has the XMLRPC Answer......... is the result in anyway encoded in the xmlrpc answer?
thanx stefan
P.S. What do u think of connecting this way to xindice?
Work well ! I have tested in perl !
Arnaud
