I have the following example xml:
<ip_addresses>
<ip_address>
<type>local</type>
<ip>192.168.1.1</ip>
</ip_address>
<ip_address>
<type>public</type>
<ip>82.125.1.1</ip>
</ip_address>
</ip_addresses>
How can I use different regex in my xml schema for ip checks in dependency of the value in <type>
tag?
I also tried something like <ip type="local">192.168.1.1</ip>
but I couldn't get the xml schema working correct.
thx for helping Marten