Adds XML namespaces support

I've tried to implement the XML namespaces support for serialization and deserialization.

Please, review it if you can and tell me what you think about.