How do I validate XML document using RELAX NG schema in C# wiht validator Nu of the w3c? -


this error found in code:

invalid datatype found namespace 'http://whattf.org/datatype-draft' , local name 'string'. 

here code snippet:

    relaxngpattern g = compile("c:\\nu\\validator-master\\validator-master\\schema\\html5\\xhtml5.rnc");                          xmltextreader xml_memori = new xmltextreader(memstream);                         relaxngvalidatingreader r= new relaxngvalidatingreader(xml_memori,g);                         try                         {                             while (!r.eof)                                 r.read();                         }                                                 {                             r.close();                         }    relaxngpattern compile(string file)         {             using (streamreader sr = new streamreader(file))             {                 return compile(sr, file);             }         }          relaxngpattern compile(textreader reader)         {             return compile(reader, null);         }          relaxngpattern compile(textreader reader, string baseuri)         {             rncparser parser = new rncparser(new nametable());             relaxngpattern g = parser.parse(reader, baseuri);             g.compile();             return g;         } 


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -