Export XML

Saturday, 13 August 2011 · 3 messages
ED
Elmedin Dedovicin reply to yatr_98, 13 Aug 2011, 08:4013 Aug 2011 07:09 #
Hello Marc, maybe the function [1] file:write($path, $items) can be helpful to you. Example:
(: filtering - replace KEYWORD with your keyword:)
let $items :=  /descendant::*:KEYWORD | /descendant-or-self::*[@name contains text "KEYWORD"] | /descendant-or-self::*[text() contains text "KEYWORD"]
(: write the result :)
return file:write("/basexExport.xml", $items)
Quoted text · yatr_98 at yahoo.com · 12 lines
On Aug 13, 2011, at 6:40 AM, yatr_98 at yahoo.com wrote: > Hello, > > I am new to BaseX and have a question regarding the Export XML feature. After doing a keyword search and filtering my results, I would like to export this filtered data into a new XML file. Selecting Export XML, it prompts me to save it to the same .xml file. However the results are not saved. Any help would be appreciated. > > Thanks. > > Marc > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Y
yatr_9813 Aug 2011 08:40 #
Hello, I am new to BaseX and have a question regarding the Export XML feature. After doing a keyword search and filtering my results, I would like to export this filtered data into a new XML file. Selecting Export XML, it prompts me to save it to the same .xml file. However the results are not saved. Any help would be appreciated. Thanks. Marc
MS
Michael Seiferlein reply to Elmedin Dedovic, 13 Aug 2011, 07:0913 Aug 2011 09:35 #
Hi Marc, just a short follow-up to Elemdin's reply: in the GUI the Text View (Menu: View -> Text) has a little floppy icon at the top right, you may use this one to save results directly in the GUI. Hope this helps Michael
Quoted text · Elmedin Dedovic · 35 lines
Am 13.08.2011 um 07:09 schrieb Elmedin Dedovic: > Hello Marc, > > maybe the function [1] file:write($path, $items) can be helpful to you. > > Example: > (: filtering - replace KEYWORD with your keyword:) > let $items := /descendant::*:KEYWORD | /descendant-or-self::*[@name contains text "KEYWORD"] | /descendant-or-self::*[text() contains text "KEYWORD"] > (: write the result :) > return file:write("/basexExport.xml", $items) > > Best regards, > Elmedin > > [1] http://docs.basex.org/wiki/File_Functions#file:write > > > On Aug 13, 2011, at 6:40 AM, yatr_98 at yahoo.com wrote: > >> Hello, >> >> I am new to BaseX and have a question regarding the Export XML feature. After doing a keyword search and filtering my results, I would like to export this filtered data into a new XML file. Selecting Export XML, it prompts me to save it to the same .xml file. However the results are not saved. Any help would be appreciated. >> >> Thanks. >> >> Marc >> _______________________________________________ >> BaseX-Talk mailing list >> BaseX-Talk at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk

⚡Generated with XQuery