Getting two XSD,While Generating XML file

Home Page Forums BizTalk 2004 – BizTalk 2010 Getting two XSD,While Generating XML file

Viewing 1 reply thread
  • Author
    Posts
    • #13111

      Hi All

      While Generating XSD from a XML file by using ADD Generating Items Window(WellFormed-XML), I am getting two XSD’s in my Biztalk Editor Window, EX: \”EMP.XSD\”,\”EMP1.XSD\”. In \”EMP.XSD\” i am not getting the Root Element. Coming to the \”EMP1.XSD\” I am getting all the elements.If I drop the \”EMP.XSD\” from my Solution Explorer, I am getting boubt when i am going to map schemes in my MapEditor, while Importing the Source and Destination Schemas in MapEditor, I am getting Rootnode and elements of that rootnode,but not any other records & fields.Why I am getting this problem, is it necessary to save these two XSD’s in my Solution Explorer. And While Generating why we are getting two \”.XSD’S\”

      • #13112

        Hi greg.forsythe

        Thanks for u reply, but while building the Map,by using the two XSD’S, I am getting the Errors like:

        1. The attribute targetNamespace does not match the designated namespace URI. An error occurred at \” Drive:../Employee.xsd, (2, 2).\” the same error will be getting in the Source and Destination Schemas.

        2. Exception Caught: Cannot use a prefix with an empty namespace. At
        \”Drive:.. \\emp2exec.btm\”

    • #13110

      Yes you need to keep both XSDs.

      The schema generator for well-formed Xml will sometimes create a number of interrelated schemas. There will be an <xs:import> or <xs:include> in one of the schemas referencing the other.

      If you open EMP.XSD in notepad you will see a number of complex type defined these are used in EMP1.XSD.

      One of the advantages of multiple xsd files is reuse.
      If you have an address element containing address lines, city postcode, country, etc. Rather than declaring this structure in multiple schema you declare in once, then import that schema file reuse the same address structure.

      Check out the UBL 2.0 spec at OASIS, they have 39 schemas declaring 29 document types.

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