From: Adam R. <ad...@ex...> - 2010-02-03 12:08:08
|
On 3 February 2010 10:52, Elliotte Rusty Harold <el...@ib...> wrote: > On Tue, Feb 2, 2010 at 4:46 PM, Andrzej Jan Taramina > <an...@ch...> wrote: > >> There is no stream...it's a string input. So doing a test parse() on it and storing as XML if the parse succeeds, and >> storing as binary if it fails (eg. catch the exception), is pretty trivial. > > Except that standard XQuery 1.0. doesn't have exception handling. I > think there's probably an extension floating around somewhere but I > remain amazed that anyone could design a language with dynamic errors > and not build in exception handling. It will be in XQuery 1.1 :-) http://www.w3.org/TR/xquery-11/#id-try-catch In the meantime eXist provides its own try and catch functions... > -- > Elliotte Rusty Harold > el...@ib... > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > Exist-development mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-development > -- Adam Retter eXist Developer { United Kingdom } ad...@ex... irc://irc.freenode.net/existdb |