[basex-talk] Upload a file to baseX server

2012-10-15 Thread nestor vb
Hi everyone: I have a question, is there a way to upload a file to a baseX server? I have a c# application and I would like to upload a whole xml file to the server, is this possible? any pinpoints or recommendations? Thanks Regasts, Nestor ___ BaseX-T

Re: [basex-talk] Navigating a DOM

2012-10-15 Thread Johannes.Lichtenberger
On 10/15/2012 07:12 PM, Rainer Klute wrote: Thanks, Michael, for your 2 ¢! I think I have an idea now what BaseX can do and where the limitations are. Well, since I won't get this lazy-loading-while-navigating-a-DOM-thingy anywhere, I'll have to reconsider my system architecture and find another

Re: [basex-talk] Navigating a DOM

2012-10-15 Thread Michael Seiferle
Hi Rainer, I am in fact not sure if such an API exists; at least to my knowledge it does not. Thanks for the valuable input and fruitful discussion so far :-) Feel free to keep in touch and this thread alive. Feedback and questions are always very welcome! Best Michael Am 15.10.2012 um 19:1

Re: [basex-talk] Navigating a DOM

2012-10-15 Thread Michael Seiferle
True and i think this might be a very welcome addition many use cases could benefit from ;-) Am 15.10.2012 um 19:12 schrieb Rainer Klute : > > (A lazy loading might be an idea for a future BaseX version. :-)) ___ BaseX-Talk mailing list BaseX-Talk@mai

Re: [basex-talk] Navigating a DOM

2012-10-15 Thread Rainer Klute
Thanks, Michael, for your 2 ¢! I think I have an idea now what BaseX can do and where the limitations are. Well, since I won't get this lazy-loading-while-navigating-a-DOM-thingy anywhere, I'll have to reconsider my system architecture and find another solution. (A lazy loading might be an idea f

Re: [basex-talk] Navigating a DOM

2012-10-15 Thread Michael Seiferle
Hi there, just for the sake of completeness, my 2cents: Am 15.10.2012 um 16:53 schrieb Rainer Klute : >> As far as I am aware, Sedna is >> actually ideal for storing huge single file XML documents. I am not sure if Sedna is better suited or not, but this is out of topic anyway :-). > Would be a

Re: [basex-talk] Using full Java regular expressions

2012-10-15 Thread Michael Seiferle
Am 15.10.2012 um 15:35 schrieb The Trainspotter : > Is this switch something I could request as an enhancement, Yes > if so could I expect it to be implemented any time soon? > ...not necessarily as I can not promise that someone will jump on this train anytime soon. BUT it is for sure the firs

Re: [basex-talk] Navigating a DOM

2012-10-15 Thread Rainer Klute
On 15.10.2012 15:36, Charles Foster wrote: >>> May I suggest XOM? [1]. >> Had a look at it but don't see how it could solve my challenges. > Did you thoroughly investigate XOM? > > Your requirement: > "I have a really large XML file which does not fit into memory, and I > would like to navigate it

Re: [basex-talk] Navigating a DOM

2012-10-15 Thread Charles Foster
>> May I suggest XOM? [1]. > > Had a look at it but don't see how it could solve my challenges. Did you thoroughly investigate XOM? Your requirement: "I have a really large XML file which does not fit into memory, and I would like to navigate it as a DOM." XOM Website (front page): "XOM is very

Re: [basex-talk] Using full Java regular expressions

2012-10-15 Thread The Trainspotter
Hi, Yes, this helps. I did go down a similar route with saxon before I found the exclamation mark flag. The issue I had was that using the Java bindings in Saxon was very inefficient when calculating matches for large number of attributes. This may have been my fault for not compiling the regex

Re: [basex-talk] Navigating a DOM

2012-10-15 Thread Rainer Klute
Hi Charles! On 13.10.2012 13:25, Charles Foster wrote: > May I suggest XOM? [1]. Had a look at it but don't see how it could solve my challenges. > Also, navigating a DOM tree is quite irksome in comparison to using > XQuery/XPath. Perhaps you could consider slicing up your large document > in

Re: [basex-talk] Navigating a DOM

2012-10-15 Thread Rainer Klute
On 15.10.2012 12:56, Maximilian Gärber wrote: > when you do not want the children of an item, try the except() function. > > Something like: > > let $items := doc('catalog')//*:article > for $i in $items > return $i except ($i/*:article) > > would give you the shallow results True in principle, bu

Re: [basex-talk] Navigating a DOM

2012-10-15 Thread Maximilian Gärber
Hi, when you do not want the children of an item, try the except() function. Something like: let $items := doc('catalog')//*:article for $i in $items return $i except ($i/*:article) would give you the shallow results Regards, Max 2012/10/15 Rainer Klute : > On 13.10.2012 11:38, Dirk Kirsten

Re: [basex-talk] Navigating a DOM

2012-10-15 Thread Rainer Klute
On 13.10.2012 11:38, Dirk Kirsten wrote: > Welcome to BaseX and I hope we can help you with your troubles :) Yeah, thank you! > If you are running an XPath like "doc('catalog')//article" and you get > a null result, I suspect that your xml document uses some namespaces. > If /article/ is not in

Re: [basex-talk] Using full Java regular expressions

2012-10-15 Thread Michael Seiferle
Hi Gary, not directly a flag, but you are for sure able to use Java classes from within BaseX like so https://gist.github.com/c72fad2758af668eb0f1 More information on our Java Bindings can be found here: http://docs.basex.org/wiki/Java_Bindings I hope this helps, feel free to ask for more hel