Attaches a new node to the docuement.
the name of the node
the vale of the node
returns the newly created node
See Implementation
Attaches a new node to the docuement.