Hi everyone,
I was wondering if it was possible to have a XML schema that can specify a different type of XML element. For example, we have an XML file that has this:
<xml header>
<body1>data</body1>
<body2>moredata</body2>
</xml header>
My question is that can we write a schema that can allow for XML files to have the different tags based on other stuff in the file. In order words, can we write a schema that works with the below example:
<xml header>
<body1>data</body1>
<data>stuff</data>
</xml header>
Thanks
I was wondering if it was possible to have a XML schema that can specify a different type of XML element. For example, we have an XML file that has this:
<xml header>
<body1>data</body1>
<body2>moredata</body2>
</xml header>
My question is that can we write a schema that can allow for XML files to have the different tags based on other stuff in the file. In order words, can we write a schema that works with the below example:
<xml header>
<body1>data</body1>
<data>stuff</data>
</xml header>
Thanks