XmlInterface
interface XmlInterface implements MiddlewareInterface (View source)
The interface that all XML middleware classes must implement and respond to.
Methods
void
array
getSupportedNamespaces()
Gets the list of supported namespaces and their namespace aliases.
Details
at line 30
void
__invoke(stdClass $feedRoot, string $namespaceAlias, DOMXPath $xpath)
The function signature for the middleware.
at line 44
array
getSupportedNamespaces()
Gets the list of supported namespaces and their namespace aliases.
Returns an associative array where the key is the XML Namespace URL, and the value is the friendly alias name that the middleware can use to refer to it.
return [
'http://www.w3.org/2005/Atom' => 'atom10'
];