In libxml2, how do I use atts in startElementSAXFunc to get attribute name and value? The documentation says that atts is an “An array of name/value attributes pairs, NULL terminated”. But its use is not very clear.
Are attribute name and value stored in contiguous memory locations?
Also, why doesn’t it use xmlAttr instead of xmlChar ** ?