Skip to content

Commit b233537

Browse files
committed
Rename files
1 parent 4ab1a1a commit b233537

File tree

20 files changed

+15
-17
lines changed

20 files changed

+15
-17
lines changed

content/en/docs/refguide/modeling/integration/mapping-documents/xml-documents/xml-schemas.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ weight: 15
88

99
An XML schema is defined in an XML Schema Definition (XSD) file and can be imported in your model. It describes what a certain XML document should look like. The schema can then be used in [Import Mappings](/refguide/import-mappings/) and [Export Mappings](/refguide/export-mappings/).
1010

11-
{{< figure src="/attachments/refguide/modeling/integration/xml-schemas/18582294.png" alt="Figure 1" class="no-border" >}}
11+
{{< figure src="/attachments/refguide/modeling/integration/mapping-documents/xml-schemas/schema.png" alt="Figure 1" class="no-border" >}}
1212

1313
## XSD File Support
1414

@@ -33,7 +33,7 @@ In the mapping editor for import mappings, you can check elements that can occur
3333

3434
### XSD Constraints
3535

36-
* If the XSD contains any of the unsupported constructs, they will be highlighted in the mapping editor with this warning icon: {{< figure src="/attachments/refguide/modeling/integration/xml-schemas/xml-schema-support/16843903.png" class="no-border" >}}
36+
* If the XSD contains any of the unsupported constructs, they will be highlighted in the mapping editor with this warning icon: {{< figure src="/attachments/refguide/modeling/integration/mapping-documents/xml-schemas/warning.png" class="no-border" >}}
3737

3838
* This will be next to each unsupported element or attribute. Checking any of such elements or attributes will result in consistency errors.
3939

content/en/docs/refguide10/modeling/integration/mapping-documents/import-mappings.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ Please refer to [Mapping Documents](/refguide10/mapping-documents/) for an intro
1010

1111
Figure 1 depicts an example of an Import Mapping document in which two elements from an XML Schema have been selected using the **Select elements...** dialog. Then, the ReceivedPartners and ReceivedClient entities were added and mapped to the Result and Client schema elements. Each time the Import Mapping is invoked, a new ReceivedPartners object is obtained.
1212

13-
{{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/import-mappings/16843942.png" class="no-border" >}}
13+
{{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/import-mappings/im-example.png" class="no-border" >}}
1414

1515
**Figure 1**
1616

1717
### Obtaining an Object
1818

1919
For each XML or JSON object, a Mendix object needs to be obtained. You can create one or find an existing object in the database. Alternatively, you can use a custom microflow that returns an object. You can define how a Mendix object is obtained in the window depicted in Figure 2, which is shown after double-clicking a specific mapping element.
2020

21-
{{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/import-mappings/16843943.png" class="no-border" >}}
21+
{{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/import-mappings/mapping-entity.png" class="no-border" >}}
2222

2323
**Figure 2**
2424

@@ -42,8 +42,6 @@ In each case, if the object is found or created, mapped attributes will be given
4242

4343
This is the action that the runtime will perform when an error occurred in the specified **Obtain Mendix Object** action.
4444

45-
{{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/import-mappings/no-object-found.png" class="no-border" >}}
46-
4745
| Property | Description |
4846
| --- | --- |
4947
| **Create** | Create an object of the correct entity to map to and process as in **Create an object**, above. |
@@ -66,13 +64,13 @@ Be aware that lists are not stored ordered in the Mendix database. The XML schem
6664

6765
Each schema value in a selected XML or JSON schema object needs to be mapped to an attribute of an entity to be used in your app. If you don't want to map certain values, uncheck them in the **Select elements...** dialog box. Configuring how to map the attributes is done in the screen depicted in Figure 3, which is shown after double-clicking a specific mapping element.
6866

69-
{{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/import-mappings/16843943.png" class="no-border" >}}
67+
{{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/import-mappings/no-object-found.png" class="no-border" >}}
7068

7169
**Figure 3**
7270

7371
Having defined the mappings for the attributes, these mappings are also shown in the mapping document. When a specific attribute is selected, the schema element is also selected. This works the other way around too. An example of this is shown in Figure 4, where the **dati** attribute is selected in both the entity and the schema element (in this case, dati is mapped to dati).
7472

75-
{{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/import-mappings/16843944.png" class="no-border" >}}
73+
{{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/import-mappings/schema-example.png" class="no-border" >}}
7674

7775
**Figure 4**
7876

content/en/docs/refguide10/modeling/integration/mapping-documents/map-automatically.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ url: /refguide10/map-automatically/
77

88
After you have selected a schema source for the mapping document, you need to connect it to entities, associations, and attributes. When you do not yet have suitable entities available in your domain model, creating new ones by hand can be difficult, especially in large mappings. The **Map automatically** button does the majority of the work for you. Based on the selected schema elements, it creates domain model entities and uses them in the mapping.
99

10-
{{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/map-automatically/18579457.png" class="no-border" >}}
10+
{{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/map-automatically/domain-model-mapping.png" class="no-border" >}}
1111

1212
In the above picture, no entities are connected to the schema elements and the domain model in the module is empty. After clicking **Map automatically**, the situation is as follows:
1313

14-
{{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/map-automatically/18579459.png" class="no-border" >}}
14+
{{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/map-automatically/auto-map-example.png" class="no-border" >}}
1515

1616
The following actions will be applied:
1717

@@ -21,13 +21,13 @@ The following actions will be applied:
2121

2222
A dialog is shown with the changes that have been applied to the domain model and mapping document (click **Details**"** to expand the dialog).
2323

24-
{{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/map-automatically/18579458.png" class="no-border" >}}
24+
{{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/map-automatically/change-dialog.png" class="no-border" >}}
2525

2626
## Using Existing Entities, Attributes and Associations
2727

2828
If the domain model already contains entities that map to schema elements, they are reused in the mapping. By default, an entity with the same name of the schema type is used. New attributes may be added, or a generalization may be set if the entity did not already have one. New associations may be created as well if they do not yet exist. The result dialog reports if it reuses existing domain model elements:
2929

30-
{{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/map-automatically/18579460.png" class="no-border" >}}
30+
{{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/map-automatically/change-dialog-reuse.png" class="no-border" >}}
3131

3232
## Limitations
3333

content/en/docs/refguide10/modeling/integration/mapping-documents/select--elements.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ aliases:
1111

1212
For both [import](/refguide10/import-mappings/) and [export mappings](/refguide10/export-mappings/), you need to specify the elements structure you want to map. You do this in the **Select schema elements** window. An example of this screen is shown below:
1313

14-
{{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/select--elements/19399143.png" class="no-border" >}}
14+
{{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/select--elements/schema-elements-window.png" class="no-border" >}}
1515

1616
Perform the following steps in the **Select schema elements** window:
1717

content/en/docs/refguide10/modeling/integration/mapping-documents/xml-documents/xml-inheritance-and-choice.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ In Mendix, both inheritance and choice are mapped by entity specialization.
1919

2020
In the image below, an example of an Export Mapping with inheritance is shown. For Import Mappings, the structure is the same, only the direction of the arrows is reversed. One Persons object has a one-to-many association to Person. The person can be either a Customer or Employee.
2121

22-
{{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/xml-inheritance-and-choice/16843946.png" class="no-border" >}}
22+
{{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/xml-inheritance-and-choice/inheritance.png" class="no-border" >}}
2323

2424
For Import Mappings, mapping the incoming XML to a specific XSD type is defined by the attribute *xsi:type*. However, this attribute is optional. When the *xsi:type* attribute is not present and the base type of the element is not abstract, that type will be used (in the example, that is Person). If the base type does not have a mapping defined in the import mapping document, it will be skipped. When the base type is abstract, an error will be thrown.
2525

@@ -35,6 +35,6 @@ When the root element is an inheritance element, you can only maps the entire bo
3535

3636
The image below shows an Export Mapping with a choice element. The schema specifies a choice with two alternatives: an employee id or member ID. In this image, a base entity Person is mapped to the choice element to serve as a generalization for the choice options.
3737

38-
{{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/xml-inheritance-and-choice/16843945.png" class="no-border" >}}
38+
{{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-documents/xml-inheritance-and-choice/choice.png" class="no-border" >}}
3939

4040
For exporting objects, optionality on choice elements is handled differently than for other elements because they do not explicitly occur in XML. There are two cases in which it is valid to export an empty object for a choice element: first, when the choice element itself is **Optional** and second, when at least one of the choice options is **Optional**. In these cases, no element will be created, otherwise an error is thrown. When one or more options of a choice element are **Nillable** and at the choice element you export an empty object, Mendix throws an **Unsupported** error because it is impossible to determine which XML element should be sent with the *xsi:nil* attribute.

content/en/docs/refguide10/modeling/integration/mapping-documents/xml-documents/xml-schemas.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ weight: 15
88

99
An XML schema is defined in an XML Schema Definition (XSD) file and can be imported in your model. It describes what a certain XML document should look like. The schema can then be used in [Import Mappings](/refguide10/import-mappings/) and [Export Mappings](/refguide10/export-mappings/).
1010

11-
{{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-schemas/18582294.png" alt="Figure 1" class="no-border" >}}
11+
{{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-schemas/schema.png" alt="Figure 1" class="no-border" >}}
1212

1313
## XSD File Support
1414

@@ -33,7 +33,7 @@ In the mapping editor for import mappings, you can check elements that can occur
3333

3434
### XSD Constraints
3535

36-
* If the XSD contains any of the unsupported constructs, they will be highlighted in the mapping editor with this warning icon: {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-schemas/16843903.png" class="no-border" >}}
36+
* If the XSD contains any of the unsupported constructs, they will be highlighted in the mapping editor with this warning icon: {{< figure src="/attachments/refguide10/modeling/integration/mapping-documents/xml-schemas/warning.png" class="no-border" >}}
3737

3838
* This will be next to each unsupported element or attribute. Checking any of such elements or attributes will result in consistency errors.
3939

0 commit comments

Comments
 (0)