Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / XML / November 2003

Tip: Looking for answers? Try searching our database.

Flat Schema validation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Anders Nilsson - 27 Nov 2003 22:59 GMT
I'd like to know if there is support in .NET to
somehow "flatten" a nested XML schema.
Here is the situation:
Currently I have code that can validate nested XML
against a schema. The XML is generated by using a DataSet.
Now I want to generate the XML as non-nested from the
DataSet by setting the flag Nested to false in the
Relation objects but still be able to validate it using
the same "nested" schema. So I'm hoping there is a way to
do a similar trick with a schema, load it and set som
nested flag to false and then be able to use it for
validation.
Christoph Schittko [MVP] - 29 Nov 2003 01:40 GMT
I don't know of any automatic option, but if you control the schema then you
need to make sure that all elements that were previously only defined tp be
nested elements are also valid as top-level elements. If you're using the
DataSet to generate the XML in the first place, can you extract some
"reference data" and extract the Schema you validate against from the
DataSet and then add the necessary top-level elements?

Signature

HTH
Christoph Schittko [MVP, XmlInsider]
Software Architect, .NET Mentor

> I'd like to know if there is support in .NET to
> somehow "flatten" a nested XML schema.
[quoted text clipped - 8 lines]
> nested flag to false and then be able to use it for
> validation.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.