deprecated the old xml code