XML and Java easy task - new version with different printing