Madcap-newby here, so pls. be patient

We are using MadCap in our organization to build CHM, HTML and PDF. I am currently investigating ways to build useful user-tools to get help - and as part of that excercise it would be most useful to have something like an index.xml which has keyword, file and position. (For example, index.xml for a .CHM-File should contain <keyword>foo</keyword><file>foo.chm</file><location>goo/foo.htm</location>). For a .PDF, it would be nice to get a pagenumber, and for HTML-Pages it would be great to have the name of the file as well as the a-tag.
Is something like this doable already - or if not, what is the best way to get it implemented by mc?

Thanks
Michael
P.S: I've done a little research and noticed that the /Data-directory seems to have all the info I need...but the files seem to require a lot of clever processing before being useful for "simple" purposes as I outlined Anybody ever tried that...? (I'm still hoping there is a simpler way...)