Package org.zorbaxquery.api

Examples of org.zorbaxquery.api.InMemoryStore


    callZorbaCalls("test1.xml", "<a><b>Hallo</b><b>Lukas</b><b>1</b></a>");
    callZorbaCalls("test1.xml", "<a><b>Hallo</b><b>Tim</b><b>1</b></a>");
  }

  private void callZorbaCalls(String filename, String value) throws Exception {
    InMemoryStore store = InMemoryStore.getInstance();
    Zorba zorba = Zorba.getInstance(store);
    String query = "declare variable $test external;" + "$test//b";
    XQuery xquery = zorba.compileQuery(query);
    xquery.setVariableAsDocument("test", filename, value);
    Iterator iter = xquery.iterator();
View Full Code Here

TOP

Related Classes of org.zorbaxquery.api.InMemoryStore

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.