I program complex financial reports. These often have a hierchical structure such as "This report contains these pages, plus multiple FUND sections. A "FUND" contains these pages plus a "FINANCIAL STATEMENTS" section, etc.
We're moving to XML, which seems perfect for this kind of semi-structured, semi-nested dataset. If a Report contains one or more FUNDS, the XML would have one or more "FUND" elements. Perfect.
The data comes in a little at a time. Perhaps just a single Balance Sheet or Cash flow statement. I want to validate each individual "document" as it comes in. So, each page or "report element" will have its own XSD / Schema for validation.
As I assemble all of these pieces into the final document, can I similarly assemble the schemas? Can all the little "mini-schemas" be concantenated into a larger schema? More to the point, can I do this in an ad hoc basis... for example, perhaps the client just wants to "proof" Page 5 plus the "Market Overview" section, meaning I'd need to combine the schemas for Page 5 and Market Overview in order to validate this special case document.
I'm using C#, so any MSDN articles or code snippets about the topic would be great.
Thomas D. Greer
Providing PostScript & PDF
Training, Development & Consulting
We're moving to XML, which seems perfect for this kind of semi-structured, semi-nested dataset. If a Report contains one or more FUNDS, the XML would have one or more "FUND" elements. Perfect.
The data comes in a little at a time. Perhaps just a single Balance Sheet or Cash flow statement. I want to validate each individual "document" as it comes in. So, each page or "report element" will have its own XSD / Schema for validation.
As I assemble all of these pieces into the final document, can I similarly assemble the schemas? Can all the little "mini-schemas" be concantenated into a larger schema? More to the point, can I do this in an ad hoc basis... for example, perhaps the client just wants to "proof" Page 5 plus the "Market Overview" section, meaning I'd need to combine the schemas for Page 5 and Market Overview in order to validate this special case document.
I'm using C#, so any MSDN articles or code snippets about the topic would be great.
Thomas D. Greer
Providing PostScript & PDF
Training, Development & Consulting