DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3

Thread: Validating XSD

  1. #1
    Jeff Pipes Guest

    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

  2. #2
    Rob Teixeira Guest

    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



  3. #3
    Matthew Solnit Guest

    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



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


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


Sponsored Links