I'm working on an XML Schema for customizable-if-you-know-XML maps. This is mostly so I'll be able to work with the maps on the fly, finding it easier to fiddle with XML than my own text format, but all the same.
I have it in the schema (which isn't finished, otherwise I'd post it for help. All the same, I don't think it will be needed) that the width and height of the map (in squares) is defined at the top of the "map" element, in the simple elements "width" and "height" within a group, "mapData". I'm wondering if it's possible to set the maxOccurs of the "row" and "squares" elements, coming later, to fit the width and height defined higher up in the file?
I know how to work around there being an innaccurate number of squares in the file, I either ignore it if it's too many or turn the remainder (according to width and height) to the default "Grass" tile if it's under count. I just figure there's no reason to have the schema if I can't enforce stuff like this. I'll have the error catchers anyways., so I suppose it doesn't matter... still! For my education, then