Click the button above to see if the author element has a nationality attribute.
Click the button below to add a nationality attribute.
Click the "Try it" button again, to see if the attribute is present.
The xml file used in the example: booksnamespace.xml
Note: The setAttributeNodeNS method is not supported in Internet Explorer 9 and earlier versions.