Build from XML example is partially working