Hi,

We are using BaseX as our backend xml database using the rest interface.
Responses to our queries includ an xmlns attribute e.g.

<items xmlns="http://server.my.org/xyz">
  <item>Stuff1</item>
  <item>Stuff2</item>
</items>

We are attempting to unmarshall the response using the JAXB client e.g.

ItemList itemList = response.readEntity(new GenericType<List<Item>>(){});

the inclusion of the xmlns attribute prevents JAXB from doing the unmarshall successfully, firstly because it lacks the actual prefix defined for our application eg. xmlns:xyz="http://server.my.org/xyz" and secondly because it forces us to define our own unmarshaller and set up a package-info.java definition with overrides for xml interactions outside our application.

a) Is it possible to disable the addition of the xmlns attribute?
b) Is it possible to include the prefix in the xmlns attribute being appended to the root element?

I think we would favor option a) if possible because it causes us the least amount of rework :-)

Thanks in advance for any help and/or suggestions,

MikeE.