The DomDocument class / xml.DomDocument methods |
Adds a child DomNode object to the beginning of the DomNode children for a DomDocument object
Adds a child DomNode object to the beginning of the DomNode children for this DomDocument object; node is the node to add.
Only Text nodes, Processing Instruction nodes, Document Fragment nodes, one Element node and one Document Type node allowed.
In case of error, the method throws an exception and sets the STATUS variable with the appropriate error number.