I have created simple XML file and need to get its each attribute individually and want to store into variables. Following is my XML file.
<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n<MY_VERIFICATION xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n <RESPONSE_DATA>\r\n <RESPONSE_STATUS>\r\n <CODE>100</CODE>\r\n <MESSAGE>successful</MESSAGE>\r\n </RESPONSE_STATUS>\r\n <CITIZEN_NUMBER>656566585665</CITIZEN_NUMBER>\r\n <PERSON_DATA>\r\n <NAME>???? ???? ????</NAME>\r\n <FATHER_HUSBAND_NAME>????????? ????</FATHER_HUSBAND_NAME>\r\n <PRESENT_ADDRESS>??? ???? ??? ?? ???? 2?? ????? ?????26?? ?????? ?????19?? ?????? ???? ?????? ????</PRESENT_ADDRESS>\r\n </RESPONSE_DATA>\r\n</MY_VERIFICATION>
In the above example you can see the MESSAGE tag and its value is successfull and so on. So my question is that how can I get this value under Message tag, as well as all the attribute values. Many thanks in advance.