Hi John, you were right was that the server when making the deposit gave
an error, I saw the error and I could solve it.
Thanks for your help
regards
El 12/06/2017 a las 23:13, John Salter escribió:
I've had a bit more of a dig into this, this looks like the line of code that
is generating the error:
https://github.com/swordapp/swordapp-php-library/blob/a1ddeaac8708b7ad863538cb4811c39aeff3fbfb/swordappclient.php#L126
That block of code handles the scenario where the response status is not a 2xx
response.
The document returned is parsed as XML, but in your case I think the page being
returned is a 'standard' Tomcat error page, that has a <hr> an then 'Apache
Tomcat [version]' - but is *not* valid XHTML / XML.
The error handling looks like it would report the error message, but not the
$sac_status, or the $sac_response - which might be helpful to work out why the
SWORD endpoint is failing.
Cheers,
John
-----Original Message-----
From: John Salter [mailto:j.sal...@leeds.ac.uk]
Sent: 12 June 2017 15:41
To: Julio Pemau Alonso <julio.pe...@bib.csic.es>;
sword-app-tech@lists.sourceforge.net
Subject: Re: [sword-app-tech] SimpleXMLElement::__construct(): Entity: line 1:
parser error
Hi Julio,
I'm not sure if I'm quite reading the error message properly, but it looks like
there's a non-closed <HR> tag in the data:
<HR size="1" noshade="noshade">
To be valid XML, this would need to be self-closing:
<HR size="1" noshade="noshade" />
much like <br /> and <img ... /> tags.
Cheers,
John
-----Original Message-----
From: Julio Pemau Alonso [mailto:julio.pe...@bib.csic.es]
Sent: 12 June 2017 11:35
To: sword-app-tech@lists.sourceforge.net
Subject: [sword-app-tech] SimpleXMLElement::__construct(): Entity: line 1:
parser error
Hi, I'm using the EasyDeposit SWORD tool, when trying to make a deposit,
in the final part, I get the following error.
ERROR - 2017-06-12 11:36:45 --> Severity: Warning -->
SimpleXMLElement::__construct(): Entity: line 1: parser error : Opening
and ending tag mismatch: HR line 1 and body
C:\xampp\htdocs\EasyDeposit\application\libraries\swordapp-php-library\swordappclient.php
126
ERROR - 2017-06-12 11:36:45 --> Severity: Warning -->
SimpleXMLElement::__construct(): ento.</u></p><HR
size="1" noshade="noshade"><h3>Apache
Tomcat/7.0.61</h3></body>
C:\xampp\htdocs\EasyDeposit\application\libraries\swordapp-php-library\swordappclient.php
126
Any suggestions?
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sword-app-tech mailing list
sword-app-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sword-app-tech
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sword-app-tech mailing list
sword-app-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sword-app-tech
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sword-app-tech mailing list
sword-app-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sword-app-tech