« Foundations for component and service models | Main | CLR Reliability »

XML events: not that difficult

Carlos nails it. A practical difficulty with handling events is in storing state and knowing your current context.

There's a nice way around this in SAX. First map the behaviours you're interested in to XPaths. Then as you receive events, dynamically build an XPath that states your current document position. You can use that path to select a behaviour.

June 28, 2003 02:23 PM


Trackback Pings

TrackBack URL for this entry: