change to echo xml