Added functionality to parse tags without end-tag.