Namespaces and XPath in libxml2 python - turns out you need to explicitly initialize a namespace context for XPath to use. Seems like the common case is that you want to search a document that you parsed, so the parser could initialize the namespace context for you