BabuKP

HI,

 

I need a sample code for xml validation using SAX parser in vb.net 2005.i don't want the DOM sample. bcos i already using that object. can any one help me ..

thanks in advance

Yours

BabuKP

 



Re: XML and the .NET Framework Need sample code for xml validation using SAX in vb.net2005

Martin Honnen

If you don't want to use the DOM/XmlDocument then what the .NET framework offers is not SAX but rather XmlReader, a pull parsing approach. This section on MSDN has sample code for doing validation.




Re: XML and the .NET Framework Need sample code for xml validation using SAX in vb.net2005

BabuKP

HI ,

Thanks for your reply.

My doublt is ...

1. Can i use the SAX reader to read xml in asp.net2005(vb code behind)

2. Which reference i should add for this SAX reader

3. Its like a xmlTextreader

Give me some sample .

thanks in advance..

Yours

BabuKP





Re: XML and the .NET Framework Need sample code for xml validation using SAX in vb.net2005

Martin Honnen

The .NET framework library as provided by Microsoft has no SAX implementation at all. As I have pointed out, .NET prefers a pull based XmlReader approach to the events based push parsing model of SAX.

If you really want to use SAX with .NET then you need to look for third party implementations.