In fact I have some questions as I got stuck.
I have an XML document. What is next? How do I bring the XML document into
my C# project so that I can create an XSD schema? Can I create a schema from
the XML menu Item?
Afterwards I will try to write the code to validate the document, but I need
help to get to this point.
"Doru Roman" <doruroman@rogers.com> wrote in message
news:%236u7J11UGHA.2444@TK2MSFTNGP14.phx.gbl...[color=blue]
> Thank you Martin. I will give it a try and eventually with more questions
> if needed.
>
>
> "Martin Honnen" <mahotrash@yahoo.de> wrote in message
> news:en1OU%230UGHA.2360@TK2MSFTNGP09.phx.gbl...[color=green]
>>
>>
>> Doru Roman wrote:
>>
>>[color=darkred]
>>> I am a beginner and I try to understand how can I use C# and
>>> Netframework to validate an XML document. Is XSD a solution? How?[/color]
>>
>> The .NET framework supports validation against a DTD or against an XDR
>> schema (deprecated) or against W3C XSD schema(s).
>> With .NET 1.x you would use XmlValidatingReader to do the validation,
>> with .NET 2.0 you would create an XmlReader with the proper
>> XmlReaderSettings for the validation you want.
>> See
>> <http://samples.gotdotnet.com/quickstart/howto/doc/Xml/ValidationReadingXML.aspx>
>> for .NET 1.x and
>> <http://www.asp.net/quickstart/howto/doc/Xml/ValidationReadingXML.aspx>
>> for .NET 2.0.
>>
>>
>> --
>>
>> Martin Honnen --- MVP XML
>>
http://JavaScript.FAQTs.com/[/color]
>
>[/color]