Most recent edit on 2011-11-16 00:21:25 by JohnSnelson [Reverted to version from 2010-03-29 09:36:49]
Additions:
CategorySimpleAPI
Deletions:
CategorySimpleAPI, HO Scale Buildings∞
Edited on 2011-09-28 12:03:09 by JoeSchmoe [link added]
Additions:
CategorySimpleAPI, HO Scale Buildings∞
Deletions:
CategorySimpleAPI
Edited on 2010-03-29 09:36:49 by JohnSnelson [Reverted to version from 2009-01-06 12:38:07]
Additions:
The simple API should be adequate for the majority of application's uses. It has been designed to give the user access to the entire XQuery / XPath 2 static and dynamic context, as well as XQilla's polymorphic type system. To use the simple API, you will need to include the xqilla/xqilla-simple.hpp header file - which will include all the headers you need to work with the simple API. The simple API reference documentation∞ is generated using Doxygen.
Deletions:
The simple API should be adequate for the majority of application's uses. It has been designed to give the user access to the entire XQuery / XPath 2 static and dynamic context, as well as XQilla's polymorphic type system. To use the simple API, you will need to include the xqilla/xqilla-simple.hpp header file - which will include all the headers you need to work with the simple API. The simple API reference documentation∞ custom term papers∞ is generated using Doxygen.
Basic query∞ resume writers∞
Edited on 2010-03-21 12:37:36 by AbigailJohnson [minor]
Additions:
The simple API should be adequate for the majority of application's uses. It has been designed to give the user access to the entire XQuery / XPath 2 static and dynamic context, as well as XQilla's polymorphic type system. To use the simple API, you will need to include the xqilla/xqilla-simple.hpp header file - which will include all the headers you need to work with the simple API. The simple API reference documentation∞ custom term papers∞ is generated using Doxygen.
Basic query∞ resume writers∞
Deletions:
The simple API should be adequate for the majority of application's uses. It has been designed to give the user access to the entire XQuery / XPath 2 static and dynamic context, as well as XQilla's polymorphic type system. To use the simple API, you will need to include the xqilla/xqilla-simple.hpp header file - which will include all the headers you need to work with the simple API. The simple API reference documentation∞ is generated using Doxygen.
Basic query∞
Edited on 2009-01-06 12:38:07 by JohnSnelson [Changed example links to point to doxygen docs]
Additions:
~-Basic query∞
Parsing a document and setting it as the context item∞
Deletions:
~-Basic query
Parsing a document and setting it as the context item
Edited on 2008-01-24 15:17:34 by JohnSnelson [Reworded]
Additions:
The simple API should be adequate for the majority of application's uses. It has been designed to give the user access to the entire XQuery / XPath 2 static and dynamic context, as well as XQilla's polymorphic type system. To use the simple API, you will need to include the xqilla/xqilla-simple.hpp header file - which will include all the headers you need to work with the simple API. The simple API reference documentation∞ is generated using Doxygen.
Deletions:
The simple API should be adequate for the majority of application's uses. It has been designed to give the user access to the entire XQuery / XPath 2 static and dynamic context, as well as XQilla's polymorphic type system. To use the simple API, you will need to include the xqilla/xqilla-simple.hpp header file - which will include all the headers you need to work with the simple API.
Doxygen generated documentation for the simple API can be found here∞.
Edited on 2007-11-12 07:44:44 by JohnSnelson [Reverted to version from 2005-12-20 12:57:48]
Deletions:
caerchic4
Edited on 2007-11-11 19:42:43 by TadroNboer
Additions:
caerchic4
Edited on 2005-12-20 12:57:48 by JohnSnelson
Additions:
~-Basic query
Deletions:
-~Basic query
-~Parsing a document and setting it as the context item
Edited on 2005-12-20 12:44:22 by JohnSnelson
Additions:
CategorySimpleAPI
Deletions:
CategoryDocumentation
Edited on 2005-12-20 12:41:18 by JohnSnelson
Additions:
Some examples:
-~Basic query
-~Parsing a document and setting it as the context item
Deletions:
Basic code to use the simple API would look like this:
#include <iostream>
#include <xqilla/xqilla-simple.hpp>
int main(int argc, char *argv[]) {
// Initialise Xerces-C and XQilla by creating the factory object
XQilla xqilla;
// Parse an XQuery expression
// (AutoDelete deletes the object at the end of the scope)
AutoDelete<XQQuery> query(xqilla.parseXQuery(X("1 to 100")));
// Create a context object
AutoDelete<DynamicContext> context(query->createDynamicContext());
// Execute the query, using the context
Result result = query->execute(context);
// Iterate over the results, printing them
Item::Ptr item;
while(item = result.next(context)) {
std::cout << UTF8(item->asString(context)) << std::endl;
}
return 0;
}
Edited on 2005-12-20 11:49:39 by JohnSnelson
Additions:
return 0;
Edited on 2005-12-20 11:21:44 by JohnSnelson
Additions:
AutoDelete<DynamicContext> context(query->createDynamicContext());
Result result = query->execute(context);
Deletions:
AutoDelete<DynamicContext> context(query.createDynamicContext());
Result result = query.execute(context);
Edited on 2005-12-20 11:20:46 by JohnSnelson
Additions:
#include <iostream>
Edited on 2005-12-16 09:00:10 by JohnSnelson
Additions:
Examples
Deletions:
Example
Edited on 2005-12-16 08:36:38 by JohnSnelson
Additions:
Parse an XQuery expression
Deletions:
Create the query object
Edited on 2005-12-16 08:35:47 by JohnSnelson
Additions:
int main(int argc, char *argv[]) {
Initialise Xerces-C and XQilla by creating the factory object
XQilla xqilla;
Create the query object
(AutoDelete deletes the object at the end of the scope)
AutoDelete<XQQuery> query(xqilla.parseXQuery(X("1 to 100")));
Create a context object
AutoDelete<DynamicContext> context(query.createDynamicContext());
Execute the query, using the context
Result result = query.execute(context);
Iterate over the results, printing them
Item::Ptr item;
while(item = result.next(context)) {
std::cout
UTF8(item->asString(context))
std::endl;
}
}
Edited on 2005-12-16 07:57:04 by JohnSnelson
Additions:
Example
The "xqilla" command line tool provides a good example of using the simple API. The source code for this can be found at src/samples/xqilla/xqilla.cpp.
Basic code to use the simple API would look like this:
#include <xqilla/xqilla-simple.hpp>
Edited on 2005-12-16 07:47:26 by JohnSnelson
Additions:
The simple API should be adequate for the majority of application's uses. It has been designed to give the user access to the entire XQuery / XPath 2 static and dynamic context, as well as XQilla's polymorphic type system. To use the simple API, you will need to include the xqilla/xqilla-simple.hpp header file - which will include all the headers you need to work with the simple API.
Doxygen generated documentation for the simple API can be found here∞.
Oldest known version of this page was edited on 2005-12-16 07:41:15 by JohnSnelson []
Page view:
XQilla Simple API
CategoryDocumentation