IBM Software Group  |  Rational software
© 2004 IBM Corporation
7
Why a DOM?
§Although flexible, the callback mechanism was hard to define
4Unable to provide all information that every possible client would require
4Often unable to determine parser context for certain constructs
4Clients had added complexity to manage their own data
4Parser had added complexity to provide enough data
•Parse mode proliferation
§Need to address scalability
4Cut down on the amount of parsing we need to do
4Can we reuse parse results?
§Need data structures to help programmatically make changes to the source code