build frilds and xml