[xml] Namespace equality with Python bindings



In libxml2 with Python bindings, what is the proper way to check for
xmlNS equality? Is a pointer compare possible? Is a string compare
necessary? Is it like this?:

ns = root.searchNsByHref(doc, "http://blahblah";)
ns.content == root.ns().content

Is this kind of "semantic" issue documented someplace?
Thanks!

-- 
Anthony Carrico



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]