Please guide on how can I schedule this script:

[code]import info.magnolia.importexport.DataTransporter
hm = ctx.getHierarchyManager('website')
newsRoot = hm.getContent('/demo-project/news-and-events/news-overview')
xmlFileOutput = new FileOutputStream('C:/test/export/news.xml')
DataTransporter.executeExport(xmlFileOutput, false, false,
  hm.getWorkspace().getSession(), newsRoot.getHandle(), 'website',
  DataTransporter.XML)
 xmlFileOutput.close()[/code]

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=dddee2cc-1688-4b34-913b-919c1b1b8218


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <user-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to