Almost certainly you have a syntax error in the toc.xhtml file. You should post the code, if you want help solving it. And you should consider solving it, because it might potentially break parsing the toc file.
BTW, the specs are here:
http://www.idpf.org/epub/30/spec/epu...ypes-landmarks