Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Question about tag and value Question about tag and valueTo: NULL Date: 11/5/2007 3:56:00 PM 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. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
