Export to XML?

Questions & Answers about Helium Scraper 3
Post Reply
pearljam
Posts: 2
Joined: Thu Feb 07, 2019 4:00 am

Export to XML?

Post by pearljam » Thu Feb 07, 2019 4:03 am

I know I can export to XML by right clicking the tables, but I wonder if it is possible to automatically export after the extraction completes?

webmaster
Site Admin
Posts: 491
Joined: Mon Dec 06, 2010 8:39 am
Contact:

Re: Export to XML?

Post by webmaster » Thu Feb 07, 2019 2:36 pm

You can do this using Action.ExportXML. Note that to run actions, the extraction logic must also be wrapped inside an action (since you can put sequences in actions, but not the other way around). So supposing Main is the global that performs the actual extraction, you can create another global with the commands below and run this global instead of Main:

Code: Select all

Action.Extract
   ·  Main
   ·  "Main"
Action.ExportXML
   ·  "file.xml"
   ·  false
   ·  Data.Main
Here, Data.Main represents the table set that the Action.Extract command above just extracted into.
Juan Soldi
The Helium Scraper Team

Post Reply