I am working on a parser to get data from an XML file. I am using libxml2 to extract data. I am a not able to get the attributes from nodes. I only found nb_attributes
The easiest way I found using libxml2 (through libxml++ in C++) was to use the eval_to_XXX methods. They evaluate an XPath expression, so you need to use the @property syntax.