xml icon indicating copy to clipboard operation
xml copied to clipboard

Feature request: changing the default deserializer

Open priyadi opened this issue 4 years ago • 0 comments

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

https://github.com/sabre-io/xml/blob/a6af111850e7536d200d9637c34885cd3c77a86c/lib/Reader.php#L286

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.

priyadi avatar Jan 10 '22 12:01 priyadi