Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27513

Validate an XML file against XSD

$
0
0
Hi!
I'm new to Xml. In my VS project (vb.net framework 4)I have added an xsd schemas like Music.xsd in a folder name kalled 'Schemas'. I get xml string as innparameter in a function. I want to validate this xml string against
xsd schema from my schema folder. I have tried a lot and haven't made through it yet. Examples in this website is simple and clear - http://www.codeproject.com/Articles/...against-a-sche
In this example I had to change - Dim xmlr As New XmlTextReader("C:\Users\Spice\Visual Studio.......\Music.xml"), here I had to put full file path and not only Xml content. But anyhow it doesn't read the file, so whatever I send, it just passes through the validationeventhandler without any validation failure .

I would appreciate if anyone can give me an examples that works properly or give me clue whats wrong in my test

Thanx
Nanedan

Viewing all articles
Browse latest Browse all 27513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>