Skip to content

Feature request: changing the default deserializer #211

Description

@priyadi

Right now the parser falls back to Sabre\Xml\Element\Base::xmlDeserialize if the element's name is not registered in $this->elementMap.

return ['Sabre\\Xml\\Element\\Base', 'xmlDeserialize'];

I propose making this default configurable. With some XMLs, people extend them in a way that is impossible to know every vendor-specific variation out there. It would be nice if we can parse these elements into a generic class that fits with the rest of the resulting data structure.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions