Valida an XML file

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
 
G

Guest

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!
***************************
 
J

J-T

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

Thanks
 
C

Cor Ligthert [MVP]

JT.

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

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

I hope this helps.

Cor
 
J

J-T

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top