XML Schema Validation - Windows Phone

  • Thread starter Thread starter Saadchdhry
  • Start date Start date
S

Saadchdhry

Guest
Hi,


I need to validate an XML file against a schema, both downloaded into the isolated storage of my Windows Phone application.

The standard libraries dont seem to work, they lack methods in compact framewoek apparently.

Ive already tried this:


XmlReaderSettings xrs = new XmlReaderSettings();
xrs.Schemas.Add("urn:namespace", "schema.xsd");
xrs.ValidationType = ValidationType.Schema;
XmlReader reader = XmlReader.Create("file.xml", xrs);
while (reader.Read()) {

but no good ..


Is there any way i can validate my XML file ...


Thanks,

Saad.

Continue reading...
 
Back
Top