M
mittra
Hello All,
I am a newbie to XML. I have the following question: how do I express
something in XML when the subsequent tag structures depends on the
value of a preceeding tag?
For example, when TAG2 has a value of 1, then TAG3 exists.
<TAG1>
<TAG2>1</TAG2>
<TAG3>some_value</TAG3>
</TAG1>
But when TAG2 has a value of 2, then TAG4 exists.
<TAG1>
<TAG2>2</TAG2>
<TAG4>some_value2</TAG4>
</TAG1>
Can the above two be combined into a single structure for TAG1?
Thanks for your insight.
I am a newbie to XML. I have the following question: how do I express
something in XML when the subsequent tag structures depends on the
value of a preceeding tag?
For example, when TAG2 has a value of 1, then TAG3 exists.
<TAG1>
<TAG2>1</TAG2>
<TAG3>some_value</TAG3>
</TAG1>
But when TAG2 has a value of 2, then TAG4 exists.
<TAG1>
<TAG2>2</TAG2>
<TAG4>some_value2</TAG4>
</TAG1>
Can the above two be combined into a single structure for TAG1?
Thanks for your insight.