JDOM provides high level and very convenient ways to get values from XML sources.
For example, the values from attributes can be taken as the concrete data type, like int.
This avoids a programer from numerous cast and pars operations.
In our purchase-order example we have an attribute 'number'. Below sample shows how
to get its value immediately as an integral number: