Hi,
My application recieves XML file as input which is validated against a schema and once successfull will be saved in DB. However, the schema used to validate the xml is very complex. It has many nested levels of refering schemas which are also important for validation the incoming xml.
Now the requirement is, i will get an xml which will not have some of the elements as compared to the previuos xml, but i should be able to map those elements(missed) and the original xml to generate a final proper xml.
For this, i am thinking of creating a map with old and new xml schemas and do a mapping between the elements to do the transformation. But, since the schema is nested schema, i will not be able to get all nodes of the referred schemas in the map, thereby missing many of the elements from the xml.
Please advise me on how to design the solution for this requirement and any easier way of doing it.
Thanks and Regards…
Jags