Beispiel zur Zielknoten-Eigenschaft "XML/JSON Behandlung"
Gegeben ist folgende Zielstruktur.
Der Knoten root#1 ist bei der XML Behandlung als Root definiert. Anhand der Änderung der Behandlung im Knoten user#3 wird gezeigt, welche Auswirkungen die unterschiedlichen Parameter haben. Folgende XML-Datei wird beim gegebenen Mapping ausgegeben, mit folgender Behandlung im user#3-Knoten.
Normal
Es wird jeder Wert und Knoten ausgegeben.
xml_no_template_normal.xml
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
root
>
<
record
art
=
"root"
type
=
"map"
>
<
scm
:user
xmlns:scm
=
"http://scm.de"
scm:type
=
"object"
>
<
scm
:name
scm:type
=
"String"
>name</
scm
:name>
<
scm
:givenName
scm:type
=
"String"
>given</
scm
:givenName>
</
scm
:user>
<
items
type
=
"array"
>
<
arrayItem
type
=
"object"
>
<
item
type
=
"String"
>abc</
item
>
<
itemType
type
=
"String"
>ALL</
itemType
>
</
arrayItem
>
<
arrayItem
type
=
"object"
>
<
item
type
=
"String"
>cde</
item
>
<
itemType
type
=
"String"
>ALL</
itemType
>
</
arrayItem
>
</
items
>
<
persons
test
=
"fix"
>
<
name
>20131018</
name
>
<
ignore
test
=
"fix"
/>
</
persons
>
</
record
>
</
root
>
Transparent
Der Knoten wird nicht mehr ausgegeben, aber die Felder im Knoten.
xml_no_template_transparent.xml
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
root
>
<
record
art
=
"root"
type
=
"object"
>
<
name
type
=
"String"
>name</
name
>
<
givenName
type
=
"String"
>given</
givenName
>
<
items
type
=
"array"
>
<
arrayItem
type
=
"object"
>
<
item
type
=
"String"
>abc</
item
>
<
itemType
type
=
"String"
>ALL</
itemType
>
</
arrayItem
>
<
arrayItem
type
=
"object"
>
<
item
type
=
"String"
>cde</
item
>
<
itemType
type
=
"String"
>ALL</
itemType
>
</
arrayItem
>
</
items
>
<
persons
test
=
"fix"
>
<
name
>20131018</
name
>
<
ignore
test
=
"fix"
/>
</
persons
>
</
record
>
</
root
>
Exkludieren
Der Knoten user#3, sowie seine dazugehörigen Feldwerte, werden nicht ausgegeben.
xml_no_template_exkludieren.xml
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
root
>
<
record
art
=
"root"
type
=
"map"
>
<
items
type
=
"array"
>
<
arrayItem
type
=
"object"
>
<
item
type
=
"String"
>abc</
item
>
<
itemType
type
=
"String"
>ALL</
itemType
>
</
arrayItem
>
<
arrayItem
type
=
"object"
>
<
item
type
=
"String"
>cde</
item
>
<
itemType
type
=
"String"
>ALL</
itemType
>
</
arrayItem
>
</
items
>
<
persons
test
=
"fix"
>
<
name
>20131018</
name
>
<
ignore
test
=
"fix"
/>
</
persons
>
</
record
>
</
root
>