<!doctype html> <html> <head> <title>Creating an XSD Schema</title> <link rel="stylesheet" href="styles/site.css" type="text/css"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" href="styles/icons.css" type="text/css"> <script src="js/jquery.min.js"></script> <script src="tree/collapsibleTreeMenu.js"></script> <link href="tree/collapsibleTreeMenu.css" rel="stylesheet" type="text/css"> </head> <body class="theme-default aui-theme-default"> <div id="page"> <div id="main" class="aui-page-panel"> <div id="main-header"> <div id="breadcrumb-section"> <ol id="breadcrumbs"> <li> <span><a href="Rhapsody-Integration-Engine-6.5_133160975.html">Rhapsody Integration Engine 6.5</a></span> </li> <li> <span><a href="Developing-Rhapsody_133161055.html">Developing Rhapsody</a></span> </li> <li> <span><a href="Rhapsody-Objects_133161790.html">Rhapsody Objects</a></span> </li> <li> <span><a href="File-Manager_133163394.html">File Manager</a></span> </li> <li> <span><a href="EDI-Tools_133163399.html">EDI Tools</a></span> </li> </ol> </div> <h1 id="title-heading" class="pagetitle"> <span id="title-text">Creating an XSD Schema</span> </h1> </div> <div id="content" class="view"> <div id="main-content" class="wiki-content group"> <p>The XSD Generator takes an XML document as input and generates an XSD schema based on the XML document. This utility is extremely useful when using a Rhapsody component that generates an XML document based on the configuration of the component; for example, the database communication point.</p> <p>To create a new XSD schema:</p> <ol> <li><p>Select the <strong>XSD Generator</strong> command from the <strong>Tools</strong> drop-down menu. The <strong>Rhapsody IDE XSD Generator</strong> is displayed:</p><p><span class="confluence-embedded-file-wrapper"><img class="confluence-embedded-image" src="attachments/133163407/133163409.png" data-image-src="attachments/133163407/133163409.png" data-unresolved-comment-count="0" data-linked-resource-id="133163409" data-linked-resource-version="1" data-linked-resource-type="attachment" data-linked-resource-default-alias="XSDGenerator.png" data-base-url="https://docs.rhapsody.health" data-linked-resource-content-type="image/png" data-linked-resource-container-id="133163407" data-linked-resource-container-version="1"></span></p></li> <li>Click the <strong>Load XML Documents</strong> link to display the <strong><em>Windows</em>® Open </strong>dialog.</li> <li><p>Browse to and select the <code>.xml</code> from which you want to create the XSD schema and then select the <strong>Open </strong>button.</p> <div class="confluence-information-macro confluence-information-macro-note"> <span class="aui-icon aui-icon-small aui-iconfont-warning confluence-information-macro-icon"></span> <div class="confluence-information-macro-body"> <p>One or more <code>.xml</code> files can be loaded and used to generate the XSD schema.</p> </div> </div><p>The XSD Generator then loads the <code>.xml</code> file.</p></li> <li><p>Click the <strong>Generate XSD Schema</strong> link to generate the XSD schema from the <code>.xml</code> file. The XSD Generator then generates the XSD schema from the <code>.xml</code> file:</p><p><span class="confluence-embedded-file-wrapper"><img class="confluence-embedded-image" src="attachments/133163407/133163408.png" data-image-src="attachments/133163407/133163408.png" data-unresolved-comment-count="0" data-linked-resource-id="133163408" data-linked-resource-version="1" data-linked-resource-type="attachment" data-linked-resource-default-alias="GeneratedXSD.png" data-base-url="https://docs.rhapsody.health" data-linked-resource-content-type="image/png" data-linked-resource-container-id="133163407" data-linked-resource-container-version="1"></span></p></li> <li>Click the <strong>Save XSD Schema</strong> link to save the XSD schema to the required location.</li> </ol> <p> </p> </div> </div> </div> </div> </body> </html>