Groups | Blog | Home
all groups > dotnet xml > december 2003 >

dotnet xml : need HELP.how to compare a xml file with another file using vb.net?



rajesh
12/30/2003 8:59:40 PM
hi all
i have a doubt!
i want to compare two files,one is a xml file which has
some certain rules,and the otherone is a "c" file.
i want to check each and every line of the "c" file which
should satisfy the rules written in xml file,if any error
occurs,it should display an error message in a new window
(Or msgbox)
i want to do it with visual basic.net.
is any ONE OF U KNOW HOW TO DO THIS?
IF SO PLEASE SEND ME THE CODE TO
svprajesh@yahoo.com
thank you,
Oleg Tkachenko
1/1/2004 1:48:27 PM
[quoted text, click to view]

That's quite trivial XML processing task, but nobody can write the code
for you. There are several approaches, which one is better depends on
details of the app logic. First you can just load XML into XPathDocument
object and then extract rules via XPath selections, second you can
build your own rules collection class and instantiate it from XML (via
XML serialization or custom).
--
Oleg Tkachenko
XML Insider
AddThis Social Bookmark Button