Este conteúdo não está disponível no idioma selecionado.

8.4. Create a New XML Document View Model


8.4.1. Create a New XML Document View Model

To create a new empty XML document view model:
  1. Launch the New Model Wizard.
  2. Specify a unique model name.
  3. Select XML option from Model Class drop-down menu.
  4. Select View Model from Model Type drop-down menu.
  5. Click Finish.

Note

You can change the target location (i.e. project or folder) by selecting the Browse... button and selecting a project or folder within your workspace.
In addition to creating a new empty XML document view model, the following builder options are available:
  1. Copy from existing model of the same model class.
  2. Build XML documents from XML schema.

8.4.2. Copy an Existing XML Document View Model

This builder option performs a structural copy of the contents of an existing model to a newly defined model. You can choose a full copy or select individual model components for copy.
To create a new relational model by copying contents from another XML document view model, complete Create a New XML Document View Model section and continue with these additional steps:
  1. Select the model builder labeled Copy from existing model of the same model class and click Next >. The Copy Existing Model dialog will be displayed.
  2. Select an existing relational model from the workspace using the browse button.
  3. Select the Copy all descriptions option if desired. Click Finish.

8.4.3. Build an XML Document View Model

This option creates an XML View document model based on a selected XML schema and its dependencies.
To create a new XML document view model by from XML schema, complete Create a Xml Document View Model section and continue with these additional steps:
  1. Select the model builder labeled Build XML documents from XML schema and click Next >. The Select XML Schema dialog will be displayed.
  2. Select an existing schema model from the workspace using the browse button.

    Note

    An existing model will be preselected if an XSD model in the workspace is selected in the VDB explorer prior to starting the new model wizard. The schema must be found in the workspace so if you need to get one or more into the workspace use the XSD Schemas on file system importer.
  3. Move the available schema root elements you want to become virtual documents in the new model over to the Virtual Documents list by using the arrow button to move all elements.
  4. Select the appropriate document options and mapping options. Click Finish.
  5. Click Finish to create a model of all selected document entities or (optional) click Next > to view Selected Documents Statistics page which shows document entity statistics and gives you an idea the size of the model being created.
  6. (Optional) Click Finish to create a model of all selected document entities or click Next > to view Preview Generated Documents page that allows you to exclude document specific entities then click Finish.

    Note

    For deeply nested schema, your total entity count may be large. If so, displaying the preview may take some time.
Voltar ao topo
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2025 Red Hat