Our XRNS and XRNI files are actually just standard ZIP archives with a renamed extension.
The ZIP contains an XML document to define the song or instrument, plus any WAV/FLAC samples that may be included.
The XML schemas for everything can found in Renoise’s program folder under /Resources/Schemas/