-
Validating XSD
Is there a way to validate that an XSD file is valid? I'm creating my first
XML Schema but I need to make sure that there aren't any syntax errors.
-Jeff
-
Re: Validating XSD
Import the System.XML.Schema namespace then create a new instance of an XMLSchema
object. Use the Read method to load the XSD file into the object. One of
the parameters to the Read method is a validation delegate. This is the address
to a function you create that gets notified of validation problems during
the read. Inside the function, you can check the ValidationEventArgs parameter
to see what the problem is.
-Rob
"Jeff Pipes" <JeffP622@msn.com> wrote:
>
>Is there a way to validate that an XSD file is valid? I'm creating my first
>XML Schema but I need to make sure that there aren't any syntax errors.
>
>-Jeff
-
Re: Validating XSD
"Jeff Pipes" <JeffP622@msn.com> wrote in message news:3cbc61e2$1@10.1.10.29...
>
> Is there a way to validate that an XSD file is valid? I'm creating my first
> XML Schema but I need to make sure that there aren't any syntax errors.
If you're just checking pure XML synxtax and well-formed-ness, you can load it
into Internet Explorer. If there are any errors, it will tell you.
-- Matthew Solnit
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks