Brett McLaughlin wrote: > Anyone got a realistic example of using either of the SAX-defined properties > (xml-string and dom-node)? I can't see the point of those, mostly because as > I look around, I never have to use them. Any help would be appreciated.
We never really implemented xml-string because the behavior isn't defined. And if we assume that it's all of the original characters, then we would have to buffer parts of the document stream (concatenating buffers, etc) even if noone ever asks for that property. As for dom-node: that property is for when someone wants to write a DOM tree traverser and make it appear as a SAX parser. So as the parser is calling the handler methods, the handlers can ask for the node that produced that callback. In short, it's just a DOM tree iterator. -- Andy Clark * IBM, TRL - Japan * [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
