Finished buildDocument(), xml looks good.