doctrine/oxm — pull request #22 by jakzal (2012-01-25 13:22:30+00:00)
Title: [WIP] Allow xml text/cdata field to object property mapping

It is currently not possible to marshal XML like:

Manager

Into an object:

Role
{
public $isActive;

public $name;
}

Attached commits make it possible by using '#text' as a name.

/**
* @OXM\XmlEntity
*/
class Role
{
/**
* @OXM\XmlAttribute(type="boolean", name="isActive")
*/
private $isActive = null;

/**
* @OXM\XmlText(type="string", name="#text")
*/
private $name = null;
}

Let me know if I took the wrong approach and I'll update my PR.

It doesn't handle CDATA properly yet but sooner I get feedback the better.