This function combines the two common operations of creating an element and adding it as the next child of some parent node. The general calling sequence is:
subNode= subElement (parent,child)
This function adds child as the next child
of parent, and returns the child.