Extract text from XML

How can I extract specific string and value from this type xml response?
<payment_respose>
<pg_txnid>HME1580977347147034</pg_txnid>
<mer_txnid>1233</mer_txnid>
<risk_title>Not-Available</risk_title>
<risk_level/>
<merchant_id>hmeaworld</merchant_id>
<store_id>hmeaworld</store_id>
100.00
<amount_bdt>100.00</amount_bdt>
<pay_status>Successful</pay_status>
<status_code>2</status_code>
<status_title>Successful Transaction</status_title>
01729792313.
<approval_code>7B65863OJF</approval_code>
<payment_processor>bKash</payment_processor>
<bank_trxid>7B65863OJF</bank_trxid>
<payment_type>bKash-bKash</payment_type>
<error_code>0000</error_code>
<error_title>Not-Available</error_title>
<bin_country>Not-Available</bin_country>
<bin_issuer>Not-Available</bin_issuer>
<bin_cardtype>Not-Available</bin_cardtype>
<bin_cardcategory>Not-Available</bin_cardcategory>
2020-02-06 14:22:27
<date_processed>2020-02-06 14:22:45</date_processed>
<amount_currency>100.00</amount_currency>
<rec_amount>97.90</rec_amount>
<processing_ratio>2.1</processing_ratio>
<processing_charge>2.10</processing_charge>
103.75.239.10
BDT
<currency_merchant>BDT</currency_merchant>
<convertion_rate>Not-Available</convertion_rate>
<opt_a>100.00</opt_a>
<opt_b>BDT</opt_b>
<opt_c>Not-Available</opt_c>
<opt_d>Not-Available</opt_d>
<verify_status>PENDING</verify_status>
<final_reason>Not-Available</final_reason>
<call_type>Post-Method</call_type>
<email_send>1</email_send>
<doc_recived>NO</doc_recived>
<checkout_status>Not-Paid-Yet</checkout_status>
</payment_respose>

please help me …

See here

3 Likes

Welcome to Community, always search before posting because there are a lot posts in community about these problems try as @dora_paz posted he also searched and share from community. You can also search before posting so you can get solution instead of waiting.

1 Like