how to parse ebs business event and extract attribute from eventData
Content
i'm trying to integrate EBS on premis to Other application on the cloud , the problem is the event data is passed as raw format
and i want to parse this xml payload and extract values to map it to my attribute ,
what is the best approch? here is a sample of the xml payload that is sent from EBS
<BusinessEvent_Input xmlns="http://xmlns.oracle.com/apps/wf/businessevents">
<InputParameters>
<ns:BusinessEvent xmlns:ns="http://xmlns.oracle.com/apps/wf/businessevents">
<ns:EventName>oracle.apps.per.api.employee.create_employee</ns:EventName>
<ns:EventKey>241</ns:EventKey>
<ns:EventData><?xml version ='1.0' encoding ='ASCII'?><employee><hire_date>2020/01/20 00:00:00</hire_date><business_group_id>82</business_group_id><last_name>test_test</last_name><****>M</****><person_type_id>103</person_type_id><per_comments></per_comments><date_employee_data_verified></date_employee_data_verified><date_of_birth>2000/01/20 00:00:00</date_of_birth><email_address></email_address><employee_number>42665</employee_number><expense_check_send_to_addres></expense_check_send_to_addres><first_name>test_test</first_name><known_as></known_as><marital_status></marital_status><middle_names></middle_names><nationality></nationality><national_identifier></national_identifier><previous_last_name></previous_last_name><registered_disabled_flag></registered_disabled_flag><title></title><vendor_id></vendor_id><work_telephone></work_telephone><attribute_category></attribute_category><attribute1></attribute1><attribute2></attribute2><attribute3></attribute3><attribute4></attribute4><attribute5></attribute5><attribute6></attribute6><attribute7></attribute7><attribute8></attribute8><attribute9></attribute9><attribute10></attribute10><attribute11></attribute11><attribute12>N</attribute12><attribute13></attribute13><attribute14></attribute14><attribute15></attribute15><attribute16></attribute16><attribute17></attribute17><attribute18></attribute18><attribute19></attribute19><attribute20></attribute20><attribute21></attribute21><attribute22></attribute22><attribute23></attribute23><attribute24></attribute24><attribute25></attribute25><attribute26></attribute26><attribute27></attribute27><attribute28></attribute28><attribute29></attribute29><attribute30></attribute30><per_information_category>AE</per_information_category><per_information1></per_information1><per_information2></per_information2><per_information3></per_information3><per_information4></per_information4><per_information5></per_information5><per_information6></per_information6><per_information7></per_information7><per_information8></per_information8><per_information9></per_information9><per_information10></per_information10><per_information11></per_information11><per_information12></per_information12><per_information13></per_information13><per_information14></per_information14><per_information15></per_information15><per_information16></per_information16><per_information17></per_information17><per_information18></per_information18><per_information19></per_information19><per_information20></per_information20><per_information21></per_information21><per_information22></per_information22><per_information23></per_information23><per_information24></per_information24><per_information25></per_information25><per_information26></per_information26><per_information27></per_information27><per_information28></per_information28><per_information29></per_information29><per_information30></per_information30><date_of_death></date_of_death><background_check_status>N</background_check_status><background_date_check></background_date_check><blood_type></blood_type><correspondence_language></correspondence_language><fast_path_employee></fast_path_employee><fte_capacity></fte_capacity><honors></honors><internal_location></internal_location><last_medical_test_by></last_medical_test_by><last_medical_test_date></last_medical_test_date><mailstop></mailstop><office_number></office_number><on_military_service>N</on_military_service><pre_name_adjunct></pre_name_adjunct><rehire_recommendation></rehire_recommendation><projected_start_date></projected_start_date><resume_exists>N</resume_exists><resume_last_updated></resume_last_updated><second_passport_exists>N</second_passport_exists><student_status></student_status><work_schedule></work_schedule><suffix></suffix><benefit_group_id></benefit_group_id><receipt_of_death_cert_date></receipt_of_death_cert_date><coord_ben_med_pln_no></coord_ben_med_pln_no><coord_ben_no_cvg_flag>N</coord_ben_no_cvg_flag><coord_ben_med_ext_er></coord_ben_med_ext_er><coord_ben_med_pl_name></coord_ben_med_pl_name><coord_ben_med_insr_crr_name></coord_ben_med_insr_crr_name><coord_ben_med_insr_crr_ident></coord_ben_med_insr_crr_ident><coord_ben_med_cvg_strt_dt></coord_ben_med_cvg_strt_dt><coord_ben_med_cvg_end_dt></coord_ben_med_cvg_end_dt><uses_tobacco_flag></uses_tobacco_flag><dpdnt_adoption_date></dpdnt_adoption_date><dpdnt_vlntry_svce_flag>N</dpdnt_vlntry_svce_flag><original_date_of_hire>2020/01/20 00:00:00</original_date_of_hire><adjusted_svc_date></adjusted_svc_date><person_id>190617</person_id><assignment_id></assignment_id><per_object_version_number>2</per_object_version_number><asg_object_version_number></asg_object_version_number><per_effective_start_date>2020/01/20 00:00:00</per_effective_start_date><per_effective_end_date>4712/12/31 00:00:00</per_effective_end_date><full_name>test_test, test_test</full_name><per_comment_id></per_comment_id><assignment_sequence></assignment_sequence><assignment_number></assignment_number><town_of_birth></town_of_birth><region_of_birth></region_of_birth><country_of_birth></country_of_birth><global_person_id></global_person_id><party_id></party_id><name_combination_warning>FALSE</name_combination_warning><assign_payroll_warning>FALSE</assign_payroll_warning><orig_hire_warning>FALSE</orig_hire_warning></employee></ns:EventData>