schmittjoh/serializer — pull request #301 by goetas (2014-07-16 10:12:10+00:00)
Title: Generate namespaced element on XmlList entries 

Given this class:
```php
/**
* @XmlRoot("root", namespace="http://example.com/namespace")
* @XmlNamespace(uri="http://example.com/namespace")
* @XmlNamespace(uri="http://example.com/namespace2", prefix="x")
*/
class ObjectWithNamespacesAndList {
/**
* @Type("string")
* @XmlElement(namespace="http://example.com/namespace")
*/
private $name;
/**
* @XmlElement(namespace="http://example.com/namespace2")
* @XmlList(inline = false, entry = "phone")
*/
private $phones;
}
```

The current generated XML is
```xml

myname

000
111

```
**Current behavior problems**
* Since `root` and `name` have the same namespace, there is no need to generate a prefix.
* There is no way to decide a namespace for `phone` node.

With this PR, the generated XML is:

```xml

myname

000
111

```
`phone` inherits the namespace form `phones` node. Would be useful allow a different namespace?