Hello everyone,
I am encoding an XML and it is variable, that is, they do not always send me the same tags. I am using XML-INTO but obviously it gives me an error since when the structure changes it does not match the structure that I have declared.
What I can do? I have thought about using XML-SAX, but since I am new to this world, I don't know if there is a simpler way.
Example 1
Example 2
thank you very much
I am encoding an XML and it is variable, that is, they do not always send me the same tags. I am using XML-INTO but obviously it gives me an error since when the structure changes it does not match the structure that I have declared.
What I can do? I have thought about using XML-SAX, but since I am new to this world, I don't know if there is a simpler way.
Example 1
PHP Code:
.
.
.
</Persoonsgegevens>
<HuidigAdres>
<Straat></Straat>
<Huisnummer>
<N>5/N>
</Huisnummer>
<Postcode>
<N></N>
<A></A>
</Postcode>
<Plaats></Plaats>
<Land></Land>
</HuidigAdres>
<VorigAdres>
<Straat></Straat>
<Huisnummer>
<N></N>
</Huisnummer>
<Postcode>
<N></N>
<A></A>
</Postcode>
<Plaats></Plaats>
<Land></Land>
</VorigAdres>
<Contracten>
<Eigen>
<Contract>
.
.
.
PHP Code:
.
.
.
</Persoonsgegevens>
<HuidigAdres>
<Straat></Straat>
<Huisnummer>
<N></N>
</Huisnummer>
<Postcode>
<N></N>
<A></A>
</Postcode>
<Plaats></Plaats>
<Land></Land>
</HuidigAdres>
<Contracten>
<Initiator>
<Contract>
<DeelnemerNummer></DeelnemerNummer>
<SoortOvereenkomst>
.
.
.



Comment