I have a file upload system that when sending the xml file it sends the inserts and updates to the database, but if I send a file with the different structure I get errors. I have already found some solutions using DTD and #
How can I ensure that the uploaded file actually has the desired structure using php and mysql?
Here is an example of the xml file:
<?xml version="1.0"?>
<table>
<row>
<column>
131290444
</column>
<column>
Nome Completo
</column>
<column>
10/09/1991
</column>
<column>
39077161830
</column>
<column>
[email protected]
</column>
<column>
Aluno Regularmente Matriculado
</column>
</row>
<row>
<column>
151290202
</column>
<column>
Nome completo 2
</column>
<column>
20/09/1987
</column>
<column>
37999131814
</column>
<column>
[email protected]
</column>
<column>
Aluno Regularmente Matriculado
</column>
</row>
</table>