09 April 2007 - java_dev (original) (raw)

09:37 pm - ska_o - XML Schema Two quick questions about XML schema.1) Is there a Java parser that would validate the key constraints (if that's the right terminology)? I'm using XJC to generate schema bindings. I had to run it with the extension switch to work with the schema that has keys and keyrefs defined, and it issued a warning that the constraints would not be validated or something to that effect. Currently, this validation is essentially hard-coded inti the app code, and I'd like to move away from that if possible. Any suggestions?2) The second question is not specifically about Java, but don't be mad at me. Is there a similar LJ community for XML discussions? That's where I should really post this question. I'd like to figure out if it's possible to define a unique key in the XSD file that would refer to the same attribute of multiple elements; I do mean the key definition, not key reference.Thanks in advance.