1 /**
  2  * @fileoverview A class implementing update operations on XML documents.
  3  */
  4 
  5 goog.provide('xrx.update');
  6 
  7 
  8 
  9 goog.require('xrx.stream');
 10 goog.require('xrx.token');
 11 
 12 
 13 
 14 xrx.update = function(stream, token, string) {
 15 
 16   stream.update(token, string);
 17   token.length(string.length);
 18   
 19   return token;
 20 };
 21 
 22 
 23 
 24 xrx.update.notTag = function(stream, token, value) {
 25   
 26   return xrx.update(stream, token, value);
 27 };
 28 
 29 
 30 
 31 xrx.update.tagName = function(stream, token, name) {
 32 
 33   return xrx.update(stream, token, name);
 34 };
 35 
 36 
 37 
 38 xrx.update.attrValue = function(stream, token, value) {
 39   
 40   return xrx.update(stream, token, value);
 41 };
 42