i have written a program in c++ that load a mesh using irrlicht and output an Ogre XML mesh. Seriously
There are lots of exporters and utility to directly convert one format to ogre so... why reinventing the wheel (and read directly from each of the file format you want to support) if there is a library capable of load this file formats for you?
Sure you can use other tools, like Milkshape, 3ds max, deled, to export to ogre, but mine is free
Also you don't need to install modellers if you are only a programmer. Last but not the least, today i have lots of spare time because it's raining (LOL)
Here are the file formats supported by irrlicht: http://irrlicht.sourceforge.net/features.html#supportedformats
This exports indices,vertices, texture coordinates, vertex normals, and materials (in a separated .material script). It supports mesh with multiple mesh buffers (multiple sub-meshes in ogre speaking
). Currently it doesn't export animations (irrlicht supports morph animation and also skeletal animation in the last release (only for ms3d,b3d and x)
Compile (you need irrlicht SDK) and pass the mesh to the program as first parameter. Pass the outputed xml file to ogrexmlconverter and you have done.
Download win32 binary:
EDIT: source removed from here