Adding self closed nodes support on text parser