Hi list, Does anyone has a function that would remove "ghost tags" from an xml string, for instance a </img> tag when there's no <img> tag before ? More generally, a script that checks the consistency of an xml string and points errors would do perhaps ? Thanks in advance. jbv