choice.appendChild(tmp);
}
XmlAttribute xml_attr=Util.getAnnotation(clazz, XmlAttribute.class);
if(xml_attr != null) {
String[] attrs=xml_attr.attrs();
if(attrs != null && attrs.length > 0) {
Set<String> set=new HashSet<String>(Arrays.asList(attrs)); // to weed out dupes
for(String attr: set) {
Element attributeElement = xmldoc.createElement("xs:attribute");
attributeElement.setAttribute("name", attr);