Olá, agora outra duvida:

 

Como fazer para converter esse xml em objetos sendo que o arquivo tem vario s 
subitens como row

 

segue o exemplo:

Look, I got a Resultado after row with elements also have Automoveis_Completo 
and their contents in row and so on

 

<?xml version="1.0" encoding="utf-8"?>

<root>

                <Resultado 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

                               <row>

                                               <CPF>12345678901</CPF>

                                               <ID_Base>33585420</ID_Base>

                                               <Nasc>1985-06-28</Nasc>

                                               <Idade>26</Idade>

                                               <Signo>CANCER</Signo>

                                               <Escolaridade>MEDIO 
COMPLETO</Escolaridade>

                                               <Nome>RAPHAEL DE ANDRADE DA 
SILVA</Nome>

                                               <Sexo>MASCULINO</Sexo>

                                               
<StatusReceita>REGULAR</StatusReceita>

                                               
<DT_Consulta>2011-03-09</DT_Consulta>

                                               
<HR_Consulta>00:31:41</HR_Consulta>

                                               <Automoveis_Completo 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

                                                               <row>

                                                                              
<Ano_x0020_Fabricacao xsi:nil="true"/>

                                                                              
<Modelo xsi:nil="true"/>

                                                                              
<Renavam xsi:nil="true"/>

                                                               </row>

                                               </Automoveis_Completo>

                                               <Parentes 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

                                                               <row>

                                                                              
<CPF>12345678901</CPF>

                                                                              
<Nasc>1982-11-17</Nasc>

 

 

Anderson Daniel Gomes 

 

Reply via email to