IDMLToolsのサンプルコードは、InDesign CS4 Products SDKに含まれています。
<SDK>/devtools/sdktools/idmltools
(もしくは<IDMLTOOLS>)