I am able to figure out myself. I had to use /@value. Here is the correct code.
@XmlPath("PageMap/DataObject[@type='group']/Attribute[@name='name']/@value")
String groupName;
@XmlPath("PageMap/DataObject[@type='organization']/Attribute[@name='name']/@value")
@XmlAttribute(name="value")
String organization;