Schema Validation
-
I am trying to write a schema to validate an xml file. I can get it to validate everything correctly. I have one problem though. In the xml file, after a certain element, I am not going to know what will be there. ex. //After this point, the layout could change at any time (and without notice I might add) //and I don't want to have to keep changing the schema everytime the layout changes. Anyways, my question is, how would I write the schema to stop the validation at that point? Thanks.
-
I am trying to write a schema to validate an xml file. I can get it to validate everything correctly. I have one problem though. In the xml file, after a certain element, I am not going to know what will be there. ex. //After this point, the layout could change at any time (and without notice I might add) //and I don't want to have to keep changing the schema everytime the layout changes. Anyways, my question is, how would I write the schema to stop the validation at that point? Thanks.
hi, xs:any should do the job. W3C XML Schema spec.[^] best regards, David 'DNH' Nohejl Never forget: "Stay kul and happy" (I.A.)
-
hi, xs:any should do the job. W3C XML Schema spec.[^] best regards, David 'DNH' Nohejl Never forget: "Stay kul and happy" (I.A.)
When I change it I get this exception "The 'http://www.w3.org/2001/XMLSchema:any' element is not supported in this context". Any advice.
-
When I change it I get this exception "The 'http://www.w3.org/2001/XMLSchema:any' element is not supported in this context". Any advice.