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