Creating map with nested schema

Home Page Forums BizTalk 2004 – BizTalk 2010 Creating map with nested schema

Viewing 1 reply thread
  • Author
    Posts
    • #23131

      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

       

    • #23138

      Any ideas on how to do this?

      Thanks and Regards…

      Jags

      • #23179

        Hi Jags,

        I would recommend that you modify the schema for the incoming XML to take into account those elements and nested records that would missing: you can set Minimum Occurrences property of those elements to zero and/or set the Nillable property on certain nodes to True.

        This way, you can accomodate any XML file you referred to in your original post in a flexible manner.

        Good luck!

        Daniel.

         

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.