This seems to be the xschem file format description: http://repo.hu/projects/xschem/xschem_man/developer_info.html . Is it complete? It seems rather lightweight to me. I don't see any primitives for an ellipse or beziér curve, or a bus or bundle, or multi-colored objects, or. . .