InDesign AutoPage Creation

Hi All,

Does any one have developed a script for auto pagination in InDesign CS2.

I have XML coded files. Now I to import this xml coded files in ID Template and run a script so that styles should be placed. Also I want to generate a bubbles.
Any type of script for XML imporing will help me.

Thansk
Rajeev Kumar