How can i validate xml document with xml schema ?

Can any  one  help on this


Answer this question

How can i validate xml document with xml schema ?

  • Oscar Abraham

    Visual Studio 2005 has the ability to load any XML document (see w3c spec for xml format) into the editor, then click "Create Schema" to infer an XSD schema from it, this will then show you the format for the schema which is based on the W3C XML Schema standard.


  • chk_Youssef

    with .net 2.0 , we can validate xml document with xml schema by xml reader class. what is the format xml document should have what is the format xml schema should have shall have we to declare target namespace how can generate schema for xml document Please send code samples................

    Thanks in advance



  • Peng Song

    If your using .NET there is also a XMLValidatingReader that lets you validate the XML document without having to read it into memory.

    It works similar to the way XMLReader works.



  • JimDuncan

    yes - using XmlDocument.Validate.
    see - http://msdn2.microsoft.com/en-us/library/ms162371.aspx

  • Malika Senaratna

    I am not able to access this page please

  • How can i validate xml document with xml schema ?