From: Jonathan A. <jon...@gm...> - 2013-04-26 16:41:20
|
Since I already want to thank you for the quick return. Attached is the ServiceDocument. The code that throws the exception is in / swordappv2-php-library-master/swordappservicedocument.php on line 63: //Parse the xml if there is some if ($sac_thexml !='') { $sac_xml = @new SimpleXMLElement($sac_thexml); <-- HERE 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. 2. Using custom metadata for the deposit. These features are possible with the SWORD v1 or only with v2? Thanks, Jonathan 2013/4/26 LEWIS Stuart <Stu...@ed...> > Hi Jonathan, > > To help debug this, could you share your code that isn't working, and a > copy of your service document? Use something like wget to capture it > directly. I can take a look early next week at it (I'm away over the > weekend). > > Thanks, > > > Stuart Lewis > University of Edinburgh > Stu...@ed... > > > > > > On 25/04/2013 21:43, "Richard Jones" <ri...@co...> wrote: > > Hm, how odd. Can you see where in the php code the error is being thrown? > > I'm afraid I've not used the PHP version myself, so don't know much > about what might be happening. Stuart usually drops by on the list > from time to time, and he might be able to help. In the mean time, > you could try an alternative client and see if you get the same > result. > > Cheers, > > Richard > > On 25 April 2013 21:07, Jonathan Alba <jon...@gm...> wrote: > > Hi Richard, > > > > I'm using the php > > library(https://github.com/swordapp/swordappv2-php-library). I have a > >DSpace > > repository at university. > > One strange thing is that if I use the print_r() to catch the contents > > returned by ServiceDocument and I copy directly into the > >SimpleXMLElement () > > everything works. > > > > Thanks > > > > > > 2013/4/25 Richard Jones <ri...@co...> > >> > >> Hi Jonathan, > >> > >> Can you give us a bit more detail about the environments? Where is > >> the service document coming from, and how are you trying to read it - > >> are you using one of the client libraries? Can you see the raw > >> service document, and determine whether it is valid XML? > >> > >> Cheers, > >> > >> Richard > >> > >> On 25 April 2013 20:47, Jonathan Alba <jon...@gm...> > >>wrote: > >> > I'm writing an article for the university about the development of a > >> > client > >> > to the sword v2. While I was using v1 everything was working, but now > >> > I'm > >> > having problems when processing the document service with v2, exactly > >>in > >> > the > >> > moment of the convert to XML. An exception is thrown: > >> > Fatal error: Uncaught exception 'Exception' with message 'Error > >>parsing > >> > service document (String Could not be parsed as XML).' > >> > Has anyone experienced this and managed to solve? This is my final > >> > dissertation of course. > >> > > >> > Thanks > >> > > >> > > >> > > >>------------------------------------------------------------------------- > >>----- > >> > Try New Relic Now & We'll Send You this Cool Shirt > >> > New Relic is the only SaaS-based application performance monitoring > >> > service > >> > that delivers powerful full stack analytics. Optimize and monitor your > >> > browser, app, & servers with just a few lines of code. Try New Relic > >> > and get this awesome Nerd Life shirt! > >> > http://p.sf.net/sfu/newrelic_d2d_apr > >> > _______________________________________________ > >> > sword-app-tech mailing list > >> > swo...@li... > >> > https://lists.sourceforge.net/lists/listinfo/sword-app-tech > >> > > >> > >> > >> > >> -- > >> > >> Richard Jones, > >> > >> Founder, Cottage Labs > >> t: @richard_d_jones, @cottagelabs > >> w: http://cottagelabs.com > > > > > > > > -- > > Richard Jones, > > Founder, Cottage Labs > t: @richard_d_jones, @cottagelabs > w: http://cottagelabs.com > > --------------------------------------------------------------------------- > --- > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring > service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr > _______________________________________________ > sword-app-tech mailing list > swo...@li... > https://lists.sourceforge.net/lists/listinfo/sword-app-tech > > > The University of Edinburgh is a charitable body, registered in > Scotland, with registration number SC005336. > > |