I think you want to use xmlGetProp(cur, "version") instead of xmlNodeListGetString(). I think you want to be checking for "cnu" instead of "cnu " also.
Correct me if I'm wrong, but openlog() is required if you wish to subsequently syslog() with a facility other than LOG_USER (i.e. if you wish your messages to be processed with facility of LOG_AUTH...