XML events: not that difficult
June 28, 2003 |
co.mments
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
Comments
Trackback Pings
TrackBack URL for this entry:
http://www.dehora.net/mt/mt-tb.cgi/1016