HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
The following code fragment loads "books.xml" into xmlDoc and adds an element node with a namespace to each <book> element
The createElementNS() method creates an element node with a namespace.
This method returns an Element object.
createElementNS(ns,name)
Parameter | Description |
---|---|
ns | A string that specifies the namespace name for the element node |
name | A string that specifies the name for the element node |
❮ Document Object