Link to home
Start Free TrialLog in
Avatar of zomby_dog
zomby_dog

asked on

Working with XML and XML Schemas

Hi, simple question, how do you validate an XML file against a Schema?

I wish to create a list of all XML files in a dierctory which validate against a schema
E.g.

For Each File as FileInfo in New DirectoryInfo(filePath, "*.xml").GetFiles

  If ValidateXML(FileInfo.FilePath) Then lstDisplay.Items.Add(FileInfo.Name)

End For

Sub ValidateXML(filePath as string)
  ???????????
End Sub

Any ideas?

Thanks for you help,
Dan
ASKER CERTIFIED SOLUTION
Avatar of J_Mak
J_Mak

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial