Added support for encoding and decoding namespaced xml (xmlns)

This PR was submitted on the symfony/Serializer read-only repository and moved automatically to the main Symfony repository (closes symfony/Serializer#5).

Added new tests. These and all existing tests pass.