I need to unmarshall some data from xml (from Redmine web services).

The problem is that the data is represented as attributes when nested in other elements: see 'project' here...

```
<?xml version="1.0" encoding="UTF-8"?>
<issues type="array" count="1640">
  <issue>
    <id>4326</id>
    <project name="Redmine" id="1"/>
    <!-- ... ->
  </issue>
</issues>

```

But the same project data is represented as elements if I try to get a list of projects:

```
<?xml version="1.0" encoding="UTF-8"?>
<projects type="array">
  <project>
    <id>1</id>
    <name>Redmine</name>
    <identifier>redmine</identifier>
    <created_on>Sat Sep 29 12:03:04 +0200 2007</created_on>
    <!-- ... ->
  </project>
</projects>

```

What's the most simple way to do it with JAXB (standard if possible)?