Dig around this forum also. I think someone recently detailed in the developers forum how they got an xml writer hooked up through ruby so they can write xml files easily.
@henda said:
Ruby script or Ruby extensions written in C\C++ can export google sketchup file to other software that accept only xml file?
Do you need something general-purpose (very hard) or more specific (possibly easy)?