The present invention provides a method and system for performing
operations on data using XML streams. An XML schema defines a limited set
of operations that may be performed on data. These operations include
addition, subtraction, multiplication and division. The operations are
placed in an XML stream that conforms to the XML schema. The XML stream
may perform one or more of the defined operations on the data. The
limited set of operations allows data to be validated and processed
without excessive overhead.