<<
Feed::Parser::Deserialize
These are the set of standard deserializers.
There are only class methods here-- no object methods.
They accept a Feed::Parser object and at match hash as arguments.
They return some processed final form of the current element.
- tag
- Returns the element as a structure.
It uses Feed::Parser->hashify_tag to get the element back as a hash.
This means that all of the elements show up as attributes and all of the subtags go in the _data array.
Then it adds a _base key with the current base href.
And finally it copies keys as specified by the map element of the match hash.
- This stringifies to undef.
- This returns a object of $parser->element_class.
- attr
- Copies all of the attributes to the return result.
Stringifies the subtags into _content.
Stores the base href into _base.
Copies keys as specified by the map element of the match hash.
Then it copies keys as specified by the map element of the match hash.
- This stringifies to the value of the key specified by the attr key in the match hash,
or of no attr key was passed,
then _content.
- This returns a object of $parser->element_class.
<<