9 Oct
2010
9 Oct
'10
9:27 p.m.
Hi Ramon,
I hate to state the obvious, but we newbies do not want to send the XML elements to the screen. We rather assign them to some variable.
That is the request I have. I think the application "QueryExample" and similar could use some way to assign the retrieved values to a variable.
Sure, that's comprehensible. If you are using a more recent version of BaseX, such as.. http://www.inf.uni-konstanz.de/dbis/basex/maven/org/basex/basex/6.2.9/basex-... you can modify the quoted QueryExample and use the following simple line of code to assign the string result of a query to a variable: String result = new XQuery(query).execute(context); The official examples will all be updated with the next official release. Christian