Validating database schema of charge dating
Rx's website says "Since Rx itself is still undergoing design refinements, relying on any implementation in production would be a bad idea." However, it may still be worth investigating.
A schema validator takes two files as input - a schema and a data file to validate.
The XML is actually in a string because I get it back from a stored procedure call to an Oracle database. I have what I believe to be a simple problem, but I have read the .
The schema is in a string because I thought it would be cool to store the schema as an embedded resource in the DLL that implements all this. NET docs till I'm blue in the face and still can't locate a simple example of how to accomplish this. The likely reason why you're having difficulty finding such an example is because holding XML in a String is very inefficient.
If your data is structurally valid, you should receive the following result: If not...
The report should highlight the structural issues found in your data for correction.
Your XML probably comes from some other source that can be represented in a Stream or Reader, why not use that?
Xml Validating Reader reader = new Xml Validating Reader( new Xml Text Reader( new String Reader( str Xml))); : : // Attach Xml Schema to Xml Validating Reader. Xml Document doc = new Xml Document( ); Derek, Thank you for the pointer.If you're familiar with SQL you will know how schemas work; a definition of how data is stored will be the first thing you think about when creating a database.For various reasons it's now popular to store structured data in text files such as JSON or YAML. NET docs till I'm blue in the face and still can't locate a simple example of how to accomplish this. Therefore, Load( string) always means a filename/URL, whereas Load Xml( string) means the String contains UTF-16 encoded XML. I have what I believe to be a simple problem, but I have read the . I was hoping for something like: try catch Any help would be greatly appreciated. Here the undecorated method name (Read( ) or Load( )) always operates on Streams, Readers, or filename/URLs in a String.