<?xml version="1.0" encoding="UTF-8" ?>
<wpjb>
	<metas>
		<meta>
			<name>some_field</name>
			<meta_object>job</meta_object>
			<params>
				<param name="title">Skills</param>
				<param name="hint"></param>
				<param name="default"></param>
				<param name="is_required">0</param>
				<param name="type">ui-input-text</param>
				<param name="group">job</param>
			</params>
		</meta>
		<!-- REPETABLE -->
	</metas>

	<jobs>
		<job>
			<id>1</id>
			<!-- 
				 Optional, Integer uniquely identifying a job, 
				 if job with given id already exists it will 
				 be overwritten 
			-->
			
			<employer_id>1</employer_id>
            <!-- ID from wp_wpjb_company table -->
			
			<company_name>Test</company_name>
			<!-- Required (if empty <id>) -->
			<company_url>http://example.com</company_url>
			<!-- Valid URL starting with http -->
			<company_email>example@example.com</company_email>
			<!-- Required (if empty <id>), Valid email address -->
			
			<job_title>Title</job_title>
			<!-- Requrired (if empty <id>) -->			
            <job_slug>title</job_slug>
			<!-- Requrired (if empty <id>) -->
			<job_description>Some job description</job_description>
			<!-- Requrired (if empty <id>) -->
			
			<job_country>840</job_country>
			<!-- Requred (if empty <id>), valid ISO 3166-1 numeric code -->
			<job_state>New York</job_state>
			<!-- String -->
			<job_zip_code></job_zip_code>
			<!-- String -->
			<job_city>New York</job_city>
			<!-- Location or city name -->
			
			<job_created_at>2011-08-02</job_created_at>
			<!-- Required (if empty <id>), job creation date -->
			<job_modified_at>2011-08-02</job_modified_at>
			<!-- Last time job was modified -->
			<job_expires_at>2011-10-02</job_expires_at>
			<!-- Required (if empty <id>), job expiration date -->
			
			<is_active>1</is_active>
			<!-- Required (if empty <id>), boolean 0 or 1 -->
			<is_approved>1</is_approved>
			<!-- Required (if empty <id>), boolean 0 or 1 -->
			<is_filled>0</is_filled>
			<!-- Required (if empty <id>), is job filled, boolean 0 or 1 -->
			<is_featured>0</is_featured>
			<!-- Required (if empty <id>), is job marked as featured, boolean 0 or 1 -->
		  
			<tags>
				<tag>
					<type>category</type>
					<!-- required, allowed values: category, type -->
					<title>PHP</title>
					<!-- required (if empty <id>) -->
					<slug>php</slug>
				</tag>
				<!-- REPEATABLE -->
			</tags>
			
			<metas>
				<meta>
					<name>job_description_format</name>
					<!-- Required -->
					<value>html</value>
					<!-- Required -->
				</meta>
				<!-- REPEATABLE -->
			</metas>

			<files>
				<file>
					<path>company-logo/image-1.png</path>
					<!-- file path and name -->
					<content></content>
					<!-- base 64 encoded content of the image file -->
				</file>
				<!-- REPETABLE -->
			</files>
			
		</job>
	</jobs>
  
	<applications>
		<application>
		
		    <!-- 
				 Optional, Integer uniquely identifying an application, 
				 if application with given id already exists it will 
				 be overwritten 
			-->
			<id>1</id>
			
			<job_id>14</job_id>
			<!-- Required (if <id> is not given) -->
			<user_id>7</user_id>
			<!-- Opional, ID of a user (from wp_users table) who applied for a job -->
			<applied_at>2012-05-20 10:10:10</applied_at>
			<!-- Required (if <id> is not given) -->
			<applicant_name>John Doe</applicant_name>
			<!-- Full applicant name, Required (if <id> is not given) -->
			<message>This is my application</message>
			<!-- Application text, Required (if <id> is not given) -->
			<email>john.doe@example.com</email>
			<!-- Required (if <id> is not given) -->
			<status>1</status>
			<!-- 
				Application status, allowed value: 0 (rejected), 1 (new), 2 (accepted), 3 (read)
			-->
			
			<metas>
				<meta>
					<name>skills</name>
					<!-- Required -->
					<value>php</value>
					<!-- Required -->
				</meta>
				<meta>
					<name>skills</name>
					<value>java</value>
				</meta>
				<meta>
					<name>school</name>
					<value>Yale University</value>
				</meta>
				<!-- REPEATABLE -->
			</metas>

			<files>
				<file>
					<path>file/image-2.png</path>
					<!-- file path and name -->
					<content></content>
					<!-- base 64 encoded content of the image file -->
				</file>
				<!-- REPETABLE -->
			</files>
		</application>
		<!-- REPETABLE -->
	</applications>
	
	<companies>
		<company>
		
			<id>4</id>
		    <!-- 
				 Optional, Integer uniquely identifying an employer, 
				 if employer with given id already exists it will 
				 be overwritten 
			-->
			
			<user_login>login</user_login>
			<!-- Required, if user with given login does not exist it will be created -->
			<user_password>md5-password</user_password>
			<!-- Required if user_login does not exist in DB -->
			<user_email>my@example.com</user_email>
			<!-- Required if user_login does not exist in DB -->
			
			<company_name>Test</company_name>
			<!-- Requred (if empty <id>) -->
			<company_website>http://example.com</company_website>
			<!-- Requred (if empty <id>) -->
			<company_info>Some information about company, this can be a long text ...</company_info>
			<!-- Requred (if empty <id>) -->
			
			<company_country>US</company_country>
			<!-- Requred (if empty <id>), valid ISO 3166-1 alpha-2 country code -->
			<company_state>New York</company_state>
			<!-- Requred (if empty <id>) -->
			<company_zip_code>11234</company_zip_code>
			<!-- Requred (if empty <id>) -->
			<company_location>New York</company_location>
			<!-- Requred (if empty <id>) -->
			
			<is_public>1</is_public>
			<!-- Required (if empty <id>), boolean 0 or 1 -->
			<is_active>0</is_active>
			<!-- Required (if empty <id>), boolean 0 or 1 -->
			<is_verified>1</is_verified>
			<!-- Required (if empty <id>), boolean 0 or 1 -->
			
			<metas>
				<meta>
					<name>application_meta</name>
					<!-- Required -->
					<value>value</value>
					<!-- Required -->
				</meta>
				<!-- REPEATABLE -->
			</metas>

			<files>
				<file>
					<path>file/image-2.png</path>
					<!-- file path and name -->
					<content></content>
					<!-- base 64 encoded content of the image file -->
				</file>
				<!-- REPETABLE -->
			</files>
		</company>
	</companies>
	
	<candidates>
		<candidate>
		
			<id>1</id>
		    <!-- 
				 Optional, Integer uniquely identifying a candidate, 
				 if candidate with given id already exists it will 
				 be overwritten 
			-->
			
			<user_login>login</user_login>
			<!-- Required, if user with given login does not exist it will be created -->
			<user_password>md5-password</user_password>
			<!-- Required if user_login does not exist in DB -->
			<user_email>my@example.com</user_email>
			<!-- Required if user_login does not exist IN DB -->
            <user_url>http://example.com</user_url>
            <!-- Optional -->
		
			<first_name>John</first_name>
			<last_name>Doe</last_name>
		
			<phone>700700700</phone>
			<!-- Requred (if empty <id>) -->
			<headline>Professional WP Programmer</headline>
			<!-- Requred (if empty <id>) -->
			<description>Longer description here ...</description>
			<!-- Requred (if empty <id>) -->
			
			<created_at>2012-05-20</created_at>
			<modified_at>2012-05-30</modified_at>
			
			<candidate_country>US</candidate_country>
			<!-- Requred (if empty <id>), valid ISO 3166-1 alpha-2 country code -->
			<candidate_state>New York</candidate_state>
			<!-- Requred (if empty <id>) -->
			<candidate_zip_code>11234</candidate_zip_code>
			<!-- Requred (if empty <id>) -->
			<candidate_location>New York</candidate_location>
			<!-- Requred (if empty <id>) -->
			
			<is_public>1</is_public>
			<!-- Required (if empty <id>), boolean 0 or 1 -->
			<is_active>1</is_active>
			<!-- Required (if empty <id>), boolean 0 or 1 -->
			
			<details>
				<detail>
					<id>1</id>
					<!-- 
						 Optional, Integer uniquely identifying a resume detail, 
						 if resume detail with given id already exists it will 
						 be overwritten 
					-->	
					
					<type>education</type>
					<!-- Required, allowed values: experience, education -->
					<started_at>2008-08-01</started_at>
					<completed_at>2012-08-12</completed_at>
					<is_current>0</is_current>
					<!-- Required (if empty <id>), boolean 0 or 1 -->
					<grantor>Yale University</grantor>
					<detail_title>Master of computer science</detail_title>
					<detail_description>Longer description here</detail_description>
				</detail>
				<!-- REPEATABLE -->
			</details>
		
			<tags>
				<tag>
					<type>category</type>
					<!-- required, allowed values: category, type -->
					<title>PHP</title>
					<!-- required (if empty <id>) -->
					<slug>php</slug>
				</tag>
				<!-- REPEATABLE -->
			</tags>
			
			<metas>
				<meta>
					<name>job_description_format</name>
					<!-- Required -->
					<value>html</value>
					<!-- Required -->
				</meta>
				<!-- REPEATABLE -->
			</metas>

			<files>
				<file>
					<path>company-logo/image-1.png</path>
					<!-- file path and name -->
					<content></content>
					<!-- base 64 encoded content of the image file -->
				</file>
				<!-- REPETABLE -->
			</files>
		</candidate>
	</candidates>
	
</wpjb>