Hello Python friends, I have to validate some xml files against some xsd<br>schema files, but I can't use any cool library as libxml unfortunately.<br><br>A Python-only validator might be also fine, but all the projects I've<br>
seen are partial or seem dead..<br><br>So since we define the schema ourselves, I was allowed to only implement<br>the parts of the huge XML definition that we actually need.<br><br>Now I'm not quite sure how to do the validation myself, any suggestions?<br>
<br>I thought that I could first parse and store in memory the schema, then<br>iterate over the XML I need to validate and do the needed sanity checks<br>there.<br><br>So I might use or minidom.parse or ElementTree.parse, which both look<br>
fine even if I'm not sure which one is more suitable.<br><br>Another thing is that I would like to be able that if the schema changes<br>my validation is still correct, so I would need some sort of meta-schema<br>that declares all the XML constructs that I'm allowed to use.<br>
<br>Anyone did something like this?<br>Thanks,<br>Andrea<br>