Your document has a default namespace, so you need to register that namespace in your expression. I never used libxml2, but looking at their examples , it seems that you need a functionxmlXPathRegisterNs
, , XPath, ( ) . ( ), . XPath:
/ns:description/ns:display-name/ns:name