1

Hi, I am new to this xml stuff . I was assigned a task to validate a xml request against its xsd. It must split each item out and display the values on the form in an easy way to read and grouped as they are in the xsd.

Can anyone give me suggestions how to start doing it? Do i need to write xml files and then xsd and validate aml against its xsd?

62071072SP
  • 1,963
  • 2
  • 19
  • 38
  • What technologies are you using? –  Oct 13 '11 at 14:55
  • @Michael C#,Windows form – 62071072SP Oct 13 '11 at 15:01
  • You might find this stack overflow post helpful then. http://stackoverflow.com/questions/751511/validating-an-xml-against-referenced-xsd-in-c –  Oct 13 '11 at 15:04
  • @Michael I was just given an xml integration guide and in tht document there are few examples how will be the request methods will be . My question is do i need to write xml files and then xsd and validate aml against its xsd ? – 62071072SP Oct 13 '11 at 15:09

1 Answers1

1

Generally the XSD (also known as a 'schema') is written before the XML files as all XML files must conform to the XSD. A schema defines the allowable format of an XML file that it is validating. W3CSchools has a decent tutorial on the basics of designing a schema.

When you validate the XML file with the schema (using a XML validator), it will tell you if the XML matches the schema and if not, where the errors are.