Added New Class to define Text and Element Nodes