wrote:
> DOM_Element, but I read somewhere that the XML4C dom classes were not
> designed to be subclassed and thats why the Userdata field was added.
That's pretty generally true of DOM implementations. You would have to
subclass not just the individual nodes, but Document as well (to catch
all the node factories), plus dealing with any internal behaviors that
may construct nodes. Basically, you can't wrap additional behaviors
_around_ a DOM; you really need to build new behavior _into_ a DOM. Take
a look at the HTML DOM as an example -- that extends the XML DOM, but
needs fairly deep awareness of implementation details.
What are you actually trying to accomplish by subclassing? Sometimes the
right answer is to use the DOM event system in addition to the userdata
hook.
--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry