H
Herman Slagman
Suppose I have a structure like:
<person>
<name>Herman</name>
<address>Street</address>
<city>Amsterdam</city>
<country>The Netherlands</country>
</person>
All sub-elements of <person> are optional, but the sequence is important.
If I have a <person> that doesn't have a <city> element and I want to add
it.
It must be after <address> if present, otherwise after <name>, or at least
inside the <person>, but before <country> if present.
How do I do that ?
Thanks,
Herman
<person>
<name>Herman</name>
<address>Street</address>
<city>Amsterdam</city>
<country>The Netherlands</country>
</person>
All sub-elements of <person> are optional, but the sequence is important.
If I have a <person> that doesn't have a <city> element and I want to add
it.
It must be after <address> if present, otherwise after <name>, or at least
inside the <person>, but before <country> if present.
How do I do that ?
Thanks,
Herman