<?xml version="1.0" encoding="UTF-8"?>
<scraping-session use-strict-mode="true"><script-instances><owner-type>ScrapingSession</owner-type><owner-name>Hello World</owner-name></script-instances><name>Hello World</name><cookieHandling>1</cookieHandling><cookiePolicy>0</cookiePolicy><hTTPClient>0</hTTPClient><maxHTTPRequests>1</maxHTTPRequests><external_proxy_username></external_proxy_username><external_proxy_password></external_proxy_password><external_proxy_host></external_proxy_host><external_proxy_port></external_proxy_port><external_nt_proxy_username></external_nt_proxy_username><external_nt_proxy_password></external_nt_proxy_password><external_nt_proxy_domain></external_nt_proxy_domain><external_nt_proxy_host></external_nt_proxy_host><anonymize>false</anonymize><terminate_proxies_on_completion>false</terminate_proxies_on_completion><number_of_required_proxies>5</number_of_required_proxies><originator_edition>2</originator_edition><logging_level>1</logging_level><date_exported>March 10, 2009 14:30:58</date_exported><scrapeable-files sequence="1" will-be-invoked-manually="false" tidy-html="true"><last-scraped-data></last-scraped-data><URL>http://www.screen-scraper.com/tutorial/basic_form.php</URL><last-request></last-request><name>Form submission</name><extractor-patterns sequence="1" automatically-save-in-session-variable="false" if-saved-in-session-variable="0" filter-duplicates="false" cache-data-set="false" will-be-invoked-manually="false"><pattern-text>&gt;You typed: ~@FORM_SUBMITTED_TEXT@~&lt;</pattern-text><identifier>Form data</identifier><extractor-pattern-tokens optional="true" save-in-session-variable="true" compound-key="true" strip-html="false" resolve-relative-url="false" replace-html-entities="false" sequence="1"><regular-expression></regular-expression><identifier>FORM_SUBMITTED_TEXT</identifier></extractor-pattern-tokens><script-instances><script-instances when-to-run="60" sequence="1" enabled="true"><script><script-text>// Output a message to the log so we know that we'll be writing the text out to a file.
session.log( "Writing data to a file." );

// Create a FileWriter object that we'll use to write out the text.
out = new FileWriter( "form_submitted_text.txt" );

// Write out the text.
out.write( session.getVariable( "FORM_SUBMITTED_TEXT" ) );

// Close the file.
out.close();</script-text><name>Write extracted data to a file</name><language>Interpreted Java</language></script></script-instances></script-instances></extractor-patterns><HTTPParameters sequence="1"><key>text_string</key><type>GET</type><value>Hello world!</value></HTTPParameters><script-instances/></scrapeable-files></scraping-session>