Thread tag support in XML