Clear builder's buffer before generate xml