Skip to content

simplexml_load_string(): Entity: line 1: parser error : Space required after the Public Identifier #9

@Roadirsh

Description

@Roadirsh

Hi,

The error come from the function PubMedAPI::load_xml_from_url.
I got this error regularly on my website that use your class, it's really good so thank you, but I can't seems to figure this error out. I suppose that it is returning this error when the pubmed api is returning a 404 or any other webpage and not XML, maybe when the website is down, but how can I prevent simplexml_load_string to not failed if it is not and XML.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions