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
nb_attributes
if you just want a single attribute, use xmlGetProp or xmlGetNsProp