made xml and java DSLs examples more consistent