I'm trying to figure out how most easily can get a listing of components which does not validate through with their schemas. This can happen if someone adds a new mandatory field to a schema without doing impact analysis, without considering effect on existing couple hundred or tousand content components.
To solve the issue, I would like to find a way to get a complete listing of these and similar items too, which may fail validating against their schemas.
I'm planning to export/save to local file system all the content components content into XML and also to save all their XSD schemas they use and then validate them.
I noticed in schemas that there are some dependencies, which I can't resolve.
cm_xml_inst.xsd - how to get the content of this XSD? Where to access this file to be able to export/save it? This schemaLocation="cm_xml_inst.xsd" for namespace "http://www.tridion.com/ContentManager/5.0/Instance".
How to get content of XSD, where schemaLocation="tcm:0-21-1/Categories.xsd"?
I think above XSD's are missing to be able to try to validate the content components to get the listing of failed ones. Also if you know about other solution, let me know!
Thanks in advance! bvl
Albert's answere: very close to the algorythm I was thinking of.Thinking about programmatic approach and not doing it via UI manually, but the principle you described is very close to what I was thinking of. Would like to check for all components actually (but with an option to restrict it to components using certain schema, like you said), so thinking to programatically read all components and try to save them one by one. Collecting the ones that fail to save into a list. This list will be processed in a second step, going by schema and with the option to apply the same correction to every item using the same schema. This way could automatise and minimize the work I think. Also will probably give this software tool a GUI and to be able to reuse it in future easily.
Dominic's answere: I was trying to accomplish point 2 from Dominic's list, to collect all the schemas used by components and running a validation locally. But seems will choose another approach. Thanks!