def createAppendByText(parentNode, xmlText):
 monad = OpenMonad(parentNode)
 for character in xmlText:
  monad = monad.getNextMonad(character)

def createAppendByText ( parentNode , xmlText ) : monad = OpenMonad ( parentNode ) for character in xmlText : monad = monad . getNextMonad ( character )
create and append the child nodes from the xmltext .