From: Michael B. <mbe...@mb...> - 2005-10-31 09:32:19
|
Brian L Lima wrote > Thanks to Pierrick's great advice (which solved my problem and > saved me a few days of rewriting the scripts with java and XMLDB) Good. But to avoid misunderstanding: it wasn't adding encoding=utf-8 that did the trick. xquery version "1.0"; declare option exist:serialize "omit-xml-declaration=no"; <subjects aid="0"> <subject/> </subjects> works just as well, once the "return" you had in your example is zapped. As usual in the XML world, encoding defaults to utf-8. And your > declare option exist:serialize "encoding=utf-8 omit-xml-declaration=no"; also works fine on the builds I've tried. > I'm not sure what snapshot my remote box is running, but anyway there it is. It might be a good idea to become sure. Useful reactions to bug reports get very hard to produce otherwise, except where, as in at least parts of this case, the problem probably isn't with eXist in the first place. Having to ask a poster (as we so often need to) "what build are you running?" just wastes bandwidth and delays any effective response. Michael Beddow |