In framework, which I write my application there are many xml files, in which node names doesn't really matter. All valuable information is placed in attributes. Node type is defined via one of the attribute.
I would like to write simple schema for this files. I think it should fulfill two major conditions:
- every element can have attributes from defined list (e.g. name, value, type [there will be much more!])
- every element can have sequence of elements of exact definition
if there will be possibility to make attributes list dependent on some given (e.g. type) argument it will be highly usefull.
Can XSD files handle these xml files? Is it possible to write such schema? How to define attributes list of any node.