Vote count:
0
I need to add the attribute xml:lang="eng" on a Document Element. I am using this code:
element.setAttributeNS("http://ift.tt/1ikcaie","xml:lang,""eng");
When the above method is executed, I am getting the following exception: org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
I am not sure what I am doing wrong, is there another way to set this attribute?
asked 38 secs ago
Aucun commentaire:
Enregistrer un commentaire