Hi Eitan, works for me. What is your expected output and what do you get instead? General advise for your query: Using / instead of // would be sufficient in this case and is in general is much more performant. Cheers, Dirk On 24/02/14 08:23, eitan elmalam wrote:
Hi,
I try to extract the Cdata by the follow query:
for $x in doc('input.xml')//App//package//text() return $x
On the follow xml
<?xml version="1.0" encoding="UTF-8"?> <App name="BasexTest_1"> <package name="main/resources/xml"> <![CDATA[ -- dd --]]> <!-- ff --> <file name="input.xml"></file> </package> <!-- ff --> <package name="org/basex/examples/local"> <file name="RunCommands.java"></file> <!-- dd --> <!-- ff --> <folder>lib</folder></package> </App>
and it is not return the cdata ,why ?
Thanks Eitan
_______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
-- Dirk Kirsten, BaseX GmbH, http://basex.org |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle `-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22