Valida an XML file

  • Thread starter Thread starter J-T
  • Start date Start date
J

J-T

I'd like to validate an xml file against an Schema and 3 tables (As lookups)
online from my database. I am thinkning to return an structure like a
dataset from a webserivce and then try to load the xml into the dataset
offline and show the user the errors? Dose this appraoch work?


Thanks a lot
 
The XmlValidatingReader can be used for this purpose, provided you have an
XSD to run against. Another validation option is running the XML through and
XSL doc.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
But where should I keep the data of my lookup tables? That's why I was
thinking of a container like dataset.

Thanks
 
JT.

At first sight, "Why not?, however don't forget to write the schema.

\\\
ds.WriteXml("path",XmlWriteMode.WriteSchema)
///

I hope this helps.

Cor
 
So you mean that I can get whatever I want from the webserivce and dump it
into the client machines(Schema + Data) and from then onwrads the client can
work offline and also to be able to connect from while to while and get the
latest schema and data,right?

Thanks
 
Back
Top