Added support for encoding and decoding namespaced xml (xmlns)

Added new tests. These and all existing tests pass.