I am looking for user friendly library for parsing an xml file. Minimal requirement is I should be able to get default value of attribute if it is not present, with support to extract c++ data types such as boolean. I do not find libxml++ very user friendly, while tinyXML2 is almost Looks like What I am looking for, but it does not support default values and boolean value extraction.
So APIs should look like:
size = element.getAttrAsInt("size", 100); //if sizeis not specified return 100 price = element.getAttrAsDouble("price", 11.1); //if price is not specified return 11.1