XQJ serialization

Friday, 8 July 2011 · 3 messages · last reply 9 Jul 2011
O
Oda8 Jul 2011 18:23 #
Hi, I tried to execute the serializing example, but got a empty file. How can I get a correct result? (basex, basex-api 6.6.1) BaseX examples/ org.basex.examples.xqj.tutorial.Part5.java ---------- XQSequence xqs = xqe.executeQuery( "doc('etc/xml/orders.xml')//order[id='174']"); // NG - empty result xqs.writeSequence( new FileOutputStream("result.xml"), new Properties()); // OK System.out.println(xqs.getSequenceAsString(new Properties()); ---------- Thanks, Oda.
CG
Christian Grün8 Jul 2011 19:32 #
Thanks Oda, the problem should be fixed in the latest release: http://files.basex.org/releases/latest/ Christian
Quoted text · Oda · 27 lines
On Fri, Jul 8, 2011 at 6:23 PM, Oda <0170003 at gmail.com> wrote: > Hi, > > I tried to execute the serializing example, but got a empty file. > How can I get a correct result? > (basex, basex-api 6.6.1) > > BaseX examples/ > org.basex.examples.xqj.tutorial.Part5.java > ---------- > XQSequence xqs = xqe.executeQuery( > "doc('etc/xml/orders.xml')//order[id='174']"); > // NG - empty result > xqs.writeSequence( > new FileOutputStream("result.xml"), new Properties()); > // OK > System.out.println(xqs.getSequenceAsString(new Properties()); > ---------- > > Thanks, > > Oda. > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
O
Oda9 Jul 2011 07:29 #
Hi Christian, I try in the latest version. Thank you very much. Oda 2011/7/9 Christian Grün <christian.gruen at gmail.com>:
Quoted text · Christian Grün · 7 lines
> Thanks Oda, > > the problem should be fixed in the latest release: > > http://files.basex.org/releases/latest/ > > Christian

⚡Generated with XQuery