Adding self closed nodes support in text parser