Anton,
well my parser creates the <?xml... part automatically. I will cut it out
> afterwards, so my prototype is working. Is the problem caused by the <? ?>
> part ? I'm worried that complex documents with "" , '' and other characters
> work properly with the UPDATE INSERT methode?
>
Once again, update statements expect valid XQuery expression. You just
can't give it arbitrary XML fragment. For example, the following will be
valid expression:
(<?aaa ?>,
<user><login>test</login><birthdate>2010-02-22T00:00:00.000+01:00</birthdate><email>tset</email><forename>test</forename><password>098f6bcd4621d373cade4e832627b4f6</password><surname>test</surname><language>en</language></user>)
>
> I tried to use the variable binding of the Java Api, but it didn't work for
> the $data part (but $doc and $collection didnt't cause any problem):
>
> String query = "declare variable $collection external; declare variable
> $doc external; declare variable $data external; UPDATE INSERT $data INTO
> doc($doc, $collection)"
> expression.bindString("data", "<test>test</test>", null);
> expression.bindString("doc", "test", null);
> expression.bindString("collection", "test", null);
> --> doesn't work
>
Please, send me event log (SEDNA_HOME/data/event.log) after executing this
query.
Ivan Shcheklein,
Sedna Team
------------------------------------------------------------------------------
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
_______________________________________________
Sedna-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sedna-discussion