[XML-SIG] Another Sax2 Enhancement: dataSource

W. Eliot Kimber eliot@isogen.com
Fri, 27 Apr 2001 13:53:26 -0500


"Martin v. Loewis" wrote:
> 
> > Given that the info is only stored on the document node, I think it's a
> > relatively small cost. It was certainly easier for me to patch the DOM
> > implementation then to implement my own dictionary (although not that
> > much easier). But now nobody else has to think about it.
> 
> Even easier would be to put the attribute into the Document object
> without patching the DOM implementation:
> 
> root = FromXmlStream(foo)
> root.dataSource = bar
> 
> This is Python; you can modify any instance's attributes (unless the
> instance takes countermeasures).

You're right. I've been so brainwashed by our use of CORBA on our
project that I forget that you can do that kind of thing. That would
certainly satisfy the requirement I have.

But I think that this is probably a requirement against the DOM spec
itself--that is, the notion of preserving the data source for DOMs is, I
think, a general requirement that all DOM implementations should
satisfy.

Cheers,

E.

-- 
. . . . . . . . . . . . . . . . . . . . . . . .

W. Eliot Kimber | Lead Brain

1016 La Posada Dr. | Suite 240 | Austin TX  78752
    T 512.656.4139 |  F 512.419.1860 | eliot@isogen.com

w w w . d a t a c h a n n e l . c o m