From: Jonathan A. <jon...@gm...> - 2013-05-02 20:13:28
|
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 <Stu...@ed...> > 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 > Stu...@ed...<mailto:Stu...@ed...> > > From: Jonathan Alba <jon...@gm...<mailto: > jon...@gm...>> > Date: Monday, 29 April 2013 19:51 > To: Lewis Stuart <stu...@ed...<mailto:stu...@ed...>> > Cc: "swo...@li...<mailto: > swo...@li...>" < > swo...@li...<mailto: > swo...@li...>> > 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 <Stu...@ed...<mailto:Stu...@ed... > >> > 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 > Stu...@ed...<mailto:Stu...@ed...><mailto: > Stu...@ed...<mailto:Stu...@ed...>> > > > -- > The University of Edinburgh is a charitable body, registered in > Scotland, with registration number SC005336. > > > |