You'll get a lot of insight, if you export to (or save to) IDML.
Here the specifications for InDesign CS5.5:
Here the IDML Cookbook for InDesign CS5:
Don't know, if there is an online documentation for more recent versions of InDesign.
The link in the following HELP page, that once pointed to an online documentation of IDML seems to be broken:
But I'm trying to view the coding of my project and how it corresponds with a project I am working with in XCode. Is this possible?
Don't know exactly what you are asking here, but you might ask in the developer sub-forum for InDesign:
Is your work with XCode DPS (Adobe Digital Publishing Suite) related?