doctrine/oxm — pull request #24 by jakzal (2012-02-01 21:49:38+00:00)
Title: Fixed (un)marshalling of elements following a namespaced element

Elements following a namespaced element are not unmarshalled. In the following example `bas` element would be null:

```

Baz
Bas

```

Also, element prefix is not added during the marshalling. Classes:

```
namespace Doctrine\Tests\OXM\Entities\NamespaceEntities;

class Baz
{
/**
* @XmlValue(type="string")
*/
public $title;
}

/**
* @XmlRootEntity
* @XmlNamespaces({
* @XmlNamespace(url="http://www.foobar.com/schema"),
* @XmlNamespace(url="http://www.foobaz.com/schema", prefix="bat")
* })
*/
class Qux
{
/**
* @XmlElement(type="Doctrine\Tests\OXM\Entities\NamespaceEntities\Baz", name="baz", prefix="bat")
*/
public $baz;

/**
* @XmlText(type="string", name="bas")
*/
public $bas;
}

```

Would be marshalled to (baz would lack the namespace):

```

Baz
Bas

```

Note that `doUnmarshal()` method doesn't take prefix into account. I'm not sure if it's correct behavior. However, my fix is consistent with it.