Extract xml attribute from xml

I am new to elastic search. Can someone help me to extract XML attributes like Name, LastName, FatherName from the below XML file?
This is the XML which I need to parse:OUTPUT(20201112 12:15:23.356):[IdExecution: '000012345'][Servicio: 'XMAL098374'][Método: 'BusquedaCliente'][OUT:'<out><NS1:BusquedaP xmlns:NS1="http://www.abcd.gob.ec"><xmlns:ns2>http://www.abcd.gob.ec</xmlns:ns2><return><Calle>METROPOLITANA PASAJE 2000</Calle><CodigoError>000</CodigoError><Condici>AAAAA</Condici><Conyuge>AAAA BBBB CCCC DDDD</Conyuge><Domic>ACX/DDD/SDAA</Domic><Error>CONSULTA REALIZADA.</Error><EstadoC>CASADO</EstadoC><FechaCe>12/05/2016</FechaCe><Fallecimiento> ss</Fallecimiento><Defuncion> asd</Defuncion><FechaNa>28/08/1900</FechaNa><Fir>UDBA</Fir><Foto>AQTX4nVTcZQi7j/2Q==</Foto><Genero> </Genero><Instruccion>BASICA</Instruccion><LugarNa>STUG</LugarNa><NUN>11111</NUN><Nacionalidad>MMMM</Nacionalidad><Name>AAAAAA</Name><LastName>FFFFF</LastName><FatherName>ANIBAL</FatherName><NumeroCasa>SN</NumeroCasa><Profesion>C/0</Profesion><Sexo>MUJER</Sexo></return></NS1:BusquedaP></out>'][ET:'671.904000(ms)'][CodError: '0'][DescError: 'OK']

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.