From: Wolfgang M. <wol...@gm...> - 2007-06-25 08:32:33
|
> I have avoided this by using the following code > > let $data := request:get-data() > let $id := request:get-parameter("id", "") > let $temp := xmldb:store("/db/quote", concat($id, '.xml') , $data) > > Unfortunately the No matter what is in $data will be saved in the document. > I need to ensure that the document's root element is at the least a "Quote" > element. So you need to put a Quote around $data? What about this: let $data := util:eval(request:get-data()) let $id := request:get-parameter("id", "") let $temp := xmldb:store("/db/quote", concat($id, '.xml') , <Quote>{$data}</Quote>) Wolfgang |