Documentation parsing: move comment-to-XML conversion routines to libIndex