Hi,

Removing the @ appear more errors:

*Warning*: SimpleXMLElement::__construct(): Entity: line 37: parser error :
Input is not proper UTF-8, indicate encoding ! Bytes: 0xE9 0x20 0x72 0x65
in *
C:\xampp\htdocs\localhost\sword\swordappv2-php-library-master\swordappservicedocument.php
* on line *92*

*Warning*: SimpleXMLElement::__construct(): +xml</accept><collectionPolicy
xmlns="http://purl.org/net/sword/terms/";>O autor in *
C:\xampp\htdocs\localhost\sword\swordappv2-php-library-master\swordappservicedocument.php
* on line *92*

*Warning*: SimpleXMLElement::__construct(): ^ in *
C:\xampp\htdocs\localhost\sword\swordappv2-php-library-master\swordappservicedocument.php
* on line *92*

I solved this by adding the following line:

*$sac_thexml = utf8_encode($sac_thexml);*
$sac_xml = new SimpleXMLElement($sac_thexml);
$sac_ns = $sac_xml->getNamespaces(true);

Thanks,
Jonathan


2013/4/30 LEWIS Stuart <stuart.le...@ed.ac.uk>

> Hi Jonathan,
>
> With SWORDv1, just perform a deposit, but without adding files.  If you're
> using the METS/SWAP packager, this should just work.  Let us know if not.
>
> Thanks,
>
>
> Stuart Lewis
> Head of Research and Learning Services
> Deputy Director Library & University Collections, Information Services
> University of Edinburgh
> stuart.le...@ed.ac.uk<mailto:stuart.le...@ed.ac.uk>
>
> From: Jonathan Alba <jonathan.vide...@gmail.com<mailto:
> jonathan.vide...@gmail.com>>
> Date: Monday, 29 April 2013 19:51
> To: Lewis Stuart <stuart.le...@ed.ac.uk<mailto:stuart.le...@ed.ac.uk>>
> Cc: "sword-app-tech@lists.sourceforge.net<mailto:
> sword-app-tech@lists.sourceforge.net>" <
> sword-app-tech@lists.sourceforge.net<mailto:
> sword-app-tech@lists.sourceforge.net>>
> Subject: Re: [sword-app-tech] SWORD v2 - Error parsing service document
>
> Hi Stuart,
>
> These features already are implemented in SWORD v1 php library, or should
> I implement following the sword specification?
> Is there any example of deposit with no files in sword v1 ?
>
> Thanks,
>
> Jonathan
>
>
> 2013/4/29 LEWIS Stuart <stuart.le...@ed.ac.uk<mailto:stuart.le...@ed.ac.uk
> >>
> Hi Jonathan,
>
> I'll take a look at your service document and reply shortly.  To answer
> your other questions:
>
> > I have some other questions, in my dissertation I proposed some features
> for the SWORD client:
> > 1. Deposit a learning object with no files, only with metadata.
>
> Yes – SWORD is agnostic about what it deposits.  It could deposit just
> file(s), just metadata, or both.  Both versions of SWORD allow this.  SWORD
> v2 is more specific in the specification about it, with the deposit of a
> basic Dublin Core record being given as an example:
>
>  -
> http://swordapp.github.io/SWORDv2-Profile/SWORDProfile.html#protocoloperations_creatingresource_entry
>
> > 2. Using custom metadata for the deposit.
>
> Again, SWORD doesn't mind about what it deposits.  As long as the SWORD
> client and server can both handle a custom metadata format, that is fine.
>
> Thanks,
>
>
> Stuart Lewis
> University of Edinburgh
> stuart.le...@ed.ac.uk<mailto:stuart.le...@ed.ac.uk><mailto:
> stuart.le...@ed.ac.uk<mailto:stuart.le...@ed.ac.uk>>
>
>
> --
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
>
>
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
sword-app-tech mailing list
sword-app-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sword-app-tech

Reply via email to