From: Leonard P. <leo...@mu...> - 2008-03-21 15:54:17
|
Hi all, I have a problem with the content of xml documents after running queries that contains commands like "xu:remove" and "xu:append". My conf.xml file has in the serializer has the following configuration: <exist> <serializer enable-xinclude="yes" enable-xsl="yes" indent="yes" add-exist-id="all" match-tagging-elements="yes" match-tagging-attributes="no"/> </exist> To reproduce this bug please run the next xquery in the exist swing desktop client: 1. the xml doc is like that: <xml> <x> <TEST>newTest</TEST> </x> </xml> 2. <xquery> let $xupdate := <xu:modifications version="1.0" xmlns:xu="http://www.xmldb.org/xupdate"> <xu:remove select="document('/db/test.xml')/x/TEST"/> <xu:append select="document('/db/test.xml')/x"> <TEST>newTest</TEST> </xu:append> </xu:modifications> let $collectionPath:= '/db' return xmldb:update($collectionPath,$xupdate) </xquery> 3.with the preserve-whitespace-mixed-content="yes" 2 lines were added to my doc. <xml> <x> <TEST>newTest</TEST> </x> </xml> Obs.If I use preserve-whitespace-mixed-content="no" and have some spaces in my doc, this will destroy also my doc. Please help. - Leonard Petrica Programator MuseGlobal, S.A. Craiova, Romania Email: leo...@mu... |