Salve ho un problema con la funzione createElementsNs di java il codi ce è il seguente:
il problema è che nel file xml creato, nel tag description compare anche un attributocodice:root = doc.createElementNS("urn:mpeg:mpeg7:Schema:2001","Mpeg7"); doc.appendChild(root); description = doc.createElement("Description"); description.setAttribute("xsi:type", "VariationDescriptionType"); root.appendChild(description);
xmlns="" che mi dà problemi come posso fare per evitare che nel tag description compaia tale attributo?
Ho provato a rimuovere l'attributo con metodi tipo removeAttribute ma non si cancella nel file![]()

Rispondi quotando