Look into drupal_execute, although I often tend to create my node object explicitly and go via node_save, depending on the task.

On Fri, Oct 30, 2009 at 11:53 AM, Zhang Xiao <xellzhang@gmail.com> wrote:
Hi,

I have a batch of nodes need to be created from code, which function should i use as an entry?

thanks!