Hi Anton,
Why do you want to insert <?xml version="1.0" encoding="UTF-8"?> processing
instruction?
If you want to insert some document you should use bulk load. Otherwise, you
have to provide to the UPDATE statement valid XQuery expression which
returns sequence of nodes, e.g.:
UPDATE INSERT (<a>aaa</a>, <b>bbbb</b>) INTO .....
Ivan Shcheklein,
Sedna Team
On Tue, Feb 2, 2010 at 4:23 PM, Anton Brass <
[email protected]> wrote:
> Hey guys,
>
> I have a small problem with inserting some data in an empty document.
>
> I want to insert following data:
>
> UPDATE INSERT <?xml version="1.0"
>
> encoding="UTF-8"?><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>
> INTO doc('test.xml', 'users')
>
> I get a sedna error, because of this part: <?xml version="1.0"
> encoding="UTF-8"?> . I tried also <?xml version='1.0'
> encoding='UTF-8'?> with no success.
>
> I use the XQL java library with this method:
> XQExpression.executecommand(command)
>
> Thanks for any sugesstions.
>
> Anton
>
>
>
> ------------------------------------------------------------------------------
> 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
>
------------------------------------------------------------------------------
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