19Copyright © 2000-2001 Profile Consulting Inc.19
It's All Strings

All the information about element types and attribute values is passed to the application code as String objects.
It is then the programmer's responsibility to build an application object model, if that is needed.
The examples above are merely too simple to need such a model.
Many real application use an object model.
Java's reflection mechanism, java.lang.reflect, can significantly reduce this burden.