updated the xml api to be 0-based when dealing with array indexes

used to be 1-based because of historical reasons
(when initially developed it was using LinkedList, which was 1-based, instead of bsd_queue)
bump version + changelog