Share via


NASDAQ Level II Client (Windows Embedded CE 6.0)

1/6/2010

SAX2 is the preferred technology to use when you require simplicity in processing XML data. For example, consider a NASDAQ Level II client that receives stock quote messages. These XML messages contain four simple fields: Ticker, Price, Quantity, and Time. Because the data in the messages does not represent an object, the data should be fed directly into an event-control object that passes it to several screens or, possibly, a database object.

If the DOM processes this data, the DOM scans each message, and then converts it to the tree of objects. The DOM queries the tree, retrieves the data, and then passes it on to its destination. Using SAX2, however, you retrieve the data directly from the message and pass it to its required destination. In such cases, SAX2 offers faster processing and better performance.

See Also

Concepts

SAX2 Implementation Examples