MimeSweeper Spam: Re: [daisy] HTTP interface: add collections?
COELMONT, Geert
Geert.COELMONT at headbird.com
Mon Jun 30 13:07:17 CEST 2008
Thanks that worked!!
-----Original Message-----
From: daisy-bounces at lists.cocoondev.org
[mailto:daisy-bounces at lists.cocoondev.org] On Behalf Of Karel Vervaeke
Sent: maandag 30 juni 2008 12:30
To: Daisy: open source CMS - general mailinglist
Subject: MimeSweeper Spam: Re: [daisy] HTTP interface: add collections?
I think you need --data @newcoll.xml instead of --form xml=@newcoll.xml
HTH,
Karel
On Mon, 2008-06-30 at 11:45 +0200, COELMONT, Geert wrote:
> 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
>
> *********************************************************************
>
> _______________________________________________
> daisy community mailing list
> Professional Daisy support:
> http://outerthought.org/en/services/daisy/support.html
> mail to: daisy at lists.cocoondev.org
> list information: http://lists.cocoondev.org/mailman/listinfo/daisy
_______________________________________________
daisy community mailing list
Professional Daisy support:
http://outerthought.org/en/services/daisy/support.html
mail to: daisy at lists.cocoondev.org
list information: http://lists.cocoondev.org/mailman/listinfo/daisy
More information about the daisy
mailing list