Laminas Atom Feed can't read Entry content if type is application/xml

Hello,

I’m trying to get content of Atom Entry where content is with type="application/xml"

In documentation https://validator.w3.org/feed/docs/atom.html#contentElement
content can have type attribute ends in +xml or /xml , then an xml document of this type is contained inline.

I have this xml:

<entry>
    <content type="application/xml">
        <m:properties>
            <d:Code>10</d:Code>
            <d:shopCode/>
            <d:Description>Some description here</d:Description>
        </m:properties>
    </content>
</entry>

When we use \Laminas\Feed\Reader\Extension\Atom\Entry::getContent method we get empty string.
I’m expecting to get an array with keys and values.

In the code https://github.com/laminas/laminas-feed/blob/16d251b878c169dcb999bcec6dff06170c1faf28/src/Reader/Extension/Atom/Entry.php#L86 we can see there is no case for this.

Is it possible to read it or I have to create feature request in GitHub?

Any suggestion is welcome.
Thanks

Hello and welcome to our forums! :smiley:

Please create a feature request in the related issue tracker: https://github.com/laminas/laminas-feed/issues

Thanks in advance!

Thanks for the replay :slight_smile:

I will create a feature request

Best regards :slight_smile:

Thanks! I will look at this during the Hacktoberfest.

Here us the issue for reference: https://github.com/laminas/laminas-feed/issues/23