i newbie in java , have unique requirement. getting xml data client , had defined schema me. now, problem client side xml has many more element schema have. how deal it? further, there elements have different architecture defined in schema, want transform form of schema has. sound wrong since schema there validating? can give me overview of how deal problem small example?
the purpose of xml schema describe structure of set of xml documents. if client sending xml not conform schema, 1 of 3 things must true:
the client incorrect. if so, should reject request not valid.
your schema incorrect. in case, should correct schema describes permitted in requests.
your schema describing else entirely. in case, should write schema does describe permitted requests. may want want transform documents matching schema documents matching new schema - xslt great tool doing this. notice you've tagged jaxb - way perform transformation construct jaxb representations of both schemas , perform conversion in code.
is helpful? i'd first , foremost, need work out role xml schema performing in system, , that's design task should before start writing code.
Comments
Post a Comment