GNOME Bugzilla – Bug 599433
xmlSplitQName2 description inaccurate
Last modified: 2017-06-20 13:57:26 UTC
xmlSplitQName2 returns NULL if the passed name does not have a prefix. I understand from a newsgroup posting that this is the desired behavior. However, the documentation says that it returns NULL if the passed name is not a QName. Yet, a name without a prefix is still a QName, and the documentation even includes a grammar production for QName that shows this. It would help to correct the documentation. Perhaps: Returns: NULL if not a QName or if there is no prefix. Otherwise, the local part, and prefix is updated to get the Prefix.
Fixed with the following commit: https://git.gnome.org/browse/libxml2/commit/?id=5a0ae66d7202619d493985537818e052d9d1239f