[daisy] HTTP interface: add collections?

COELMONT, Geert Geert.COELMONT at headbird.com
Mon Jun 30 11:45:51 CEST 2008


Hi,
I've looked at the documentation for the Daisy repository HTTP
interface. It describes nicely how to create new documents via
http://.../repository/document
The details on how to add other components (notably collections) is
missing, but i thought it would be similar, just simpler because a
Collection doesn't have as many attributes. 
For some reason i can't get it to accept my XML form. Can anyone please
tell
- if it's possible to create new Collections this way
- if perhaps my XML is lacking something

<?xml version="1.0" encoding="ISO-8859-1"?>
<ns:collection
   xmlns:ns="http://outerx.org/daisy/1.0"
   name="test collection">
</ns:collection>

curl -s --basic --user name:pw --form xml=@newcoll.xml
http://localhost:9263/repository/collection

The answer I keep getting is an XmlException "Content is not allowed in
prolog." which seems to be a generic error message if anything is wrong.
I got many of those when initially trying to add new Documents (but i
got that to work in the end).

Thanks

Geert


**********************************************************************
All e-mail messages addressed to, received or sent by the Cobelfret Group or Cobelfret Group employees are deemed to be professional in nature. Accordingly, the sender or recipient of these messages agrees that they may be read by other Cobelfret Group employees than the official recipient or sender in order to ensure the continuity of work-related activities and allow supervision thereof.

This mail has been checked for viruses by Mailsweeper and Sophos
*********************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cocoondev.org/pipermail/daisy/attachments/20080630/12cccaae/attachment.htm


More information about the daisy mailing list