Add xml fold method to be by syntax.