Generalize bulk processing option.

Added XmlBuffer methods.