XML:
<?xml version="1.0" encoding="UTF-8"?>
<clientes>
<cliente>
<nome>Cliente1</nome>
<contatos>
<contato>
<nome>Contato1</nome>
</contato>
<contato>
<nome>Contato2</nome>
</contato>
</contatos>
</cliente>
<cliente>
<nome>Cliente2</nome>
<contatos>
<contato>
<nome>Contato3</nome>
</contato>
<contato>
<nome>Contato4</nome>
</contato>
</contatos>
</cliente>
</clientes>
I need to save in the database in two tables, the CLIENT and their CONTACTS, but I can only get each TAG at a time and they do not have reference like this:
DataSet ds = new DataSet();
ds.ReadXml(caminho);
ds.Tables[0];
//Aqui consigo obter os clientes
ds.Tables[1];
//Aqui consigo obter os contatos
That way I can not create the references, the keys on the side of the CLIENT x CONTACT relation.