I am using JAXB to marshall some groovy objects. I am getting output like this:
<desiredskillslist>
<employeeDesiredSkills xsi:type="employeeDesiredSkill" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<name>C Development</name>
</employeeDesiredSkills>
<employeeDesiredSkills xsi:type="employeeDesiredSkill" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<name>Perl Development</name>
</employeeDesiredSkills>
<employeeDesiredSkills xsi:type="employeeDesiredSkill" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<name>Java Development</name>
</employeeDesiredSkills>
<employeeDesiredSkills xsi:type="employeeDesiredSkill" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<name>Database Design</name>
</employeeDesiredSkills>
<employeeDesiredSkills xsi:type="employeeDesiredSkill" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<name>Grails Development</name>
</employeeDesiredSkills>
I really dont want the xsi:type=
and xmlns:xsi=
to show up in my final document, since it wont need it. Is this possible?
Also - I set up an @XmlElementWrapper(name="desiredskillslist")
to put the tags around the employeeDesiredSkills
, but if at all possible, I'd ratherjust not have the <employeeDesiredSkillsT>
tags at all - if itw as just the list of names, that'd be great. Why is it coming out like this when I annotated the ArrayList
?