added methods : getValue and getAttValue