Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combine schemas?

Status
Not open for further replies.

tgreer

Programmer
Joined
Oct 4, 2002
Messages
1,781
Location
US
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
 
Status
Not open for further replies.

Similar threads

Replies
0
Views
186
  • Locked
  • Question Question
Replies
0
Views
56
  • Locked
  • Question Question
Replies
0
Views
75

Part and Inventory Search

Sponsor

Back
Top