Skip to content

loading a valid XML from a URL gives empty data #52

@ioweb-gr

Description

@ioweb-gr

I'm trying to load an XML from a URL however it's not loading correctly using fluidxml

URL is https://www.yourstaging.eu/products.xml

$doc = \FluidXml\FluidXml::load('https://www.yourstaging.eu/products.xml');
        $productsNode = $doc->query("//products");
        $productNodes = $doc->query("//products/product");
        $loadedData = $doc->xml();

Both queries return 0 nodes and the resulting xml is empty.

I'm not sure why this is happening.

xmlstarlet finds the file is valid xml.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions