1 [% IF data.UserOptionalFields -%]
3 [% IF data.UserOptionalFields.NameInformation -%]
5 <PersonalNameInformation>
6 <StructuredPersonalUserName>
7 [% IF data.UserOptionalFields.NameInformation.GivenName -%]
8 <GivenName>[% data.UserOptionalFields.NameInformation.GivenName | xml %]</GivenName>
10 <Surname>[% data.UserOptionalFields.NameInformation.Surname | xml %]</Surname>
11 [% IF data.UserOptionalFields.NameInformation.Prefix -%]
12 <Prefix>[% data.UserOptionalFields.NameInformation.Prefix %]</Prefix>
14 [% IF data.UserOptionalFields.NameInformation.Suffix -%]
15 <Suffix>[% data.UserOptionalFields.NameInformation.Suffix %]</Suffix>
17 [% IF data.UserOptionalFields.NameInformation.Initials -%]
18 <Initials>[% data.UserOptionalFields.NameInformation.Initials %]</Initials>
20 </StructuredPersonalUserName>
21 </PersonalNameInformation>
24 [% IF data.UserOptionalFields.UserAddressInformation -%]
25 [% FOREACH element IN data.UserOptionalFields.UserAddressInformation -%]
26 <UserAddressInformation>
27 <UserAddressRoleType>[% element.UserAddressRoleType | xml %]</UserAddressRoleType>
28 [% IF element.PhysicalAddress -%]
31 <Line1>[% element.PhysicalAddress.Line1 | xml %]</Line1>
32 [% IF element.PhysicalAddress.Line2 -%]
33 <Line2>[% element.PhysicalAddress.Line2 | xml %]</Line2>
35 [% IF element.PhysicalAddress.Locality -%]
36 <Locality>[% element.PhysicalAddress.Locality | xml %]</Locality>
38 [% IF element.PhysicalAddress.Region -%]
39 <Region>[% element.PhysicalAddress.Region | xml %]</Region>
41 [% IF element.PhysicalAddress.PostalCode -%]
42 <PostalCode>[% element.PhysicalAddress.PostalCode | xml %]</PostalCode>
44 [% IF element.PhysicalAddress.Country -%]
45 <Country>[% element.PhysicalAddress.Country | xml %]</Country>
49 [% ELSIF element.ElectronicAddress -%]
51 <ElectronicAddressType>[% element.ElectronicAddress.Type | xml %]</ElectronicAddressType>
52 <ElectronicAddressData>[% element.ElectronicAddress.Data | xml %]</ElectronicAddressData>
55 </UserAddressInformation>
58 [% IF data.UserOptionalFields.UserPrivilege -%]
59 [% FOREACH privilege IN data.UserOptionalFields.UserPrivilege -%]
61 <AgencyId>[% privilege.AgencyId | xml -%]</AgencyId>
62 <AgencyUserPrivilegeType>[% privilege.AgencyUserPrivilegeType | xml %]</AgencyUserPrivilegeType>
63 [% IF privilege.ValidFromDate -%]
64 <ValidFromDate>[% privilege.ValidFromDate | xml %]</ValidFromDate>
66 [% IF privilege.ValidToDate -%]
67 <ValidToDate>[% privilege.ValidToDate | xml %]</ValidToDate>
69 [% IF privilege.UserPrivilegeDescription -%]
70 <UserPrivilegeDescription>[% privilege.UserPrivilegeDescription | xml %]</UserPrivilegeDescription>
72 [% IF privilege.UserPrivilegeStatus -%]
74 <UserPrivilegeStatusType>
75 [% privilege.UserPrivilegeStatus.UserPrivilegeStatusType | xml %]
76 </UserPrivilegeStatusType>
77 [% IF privilege.UserPrivilegeStatus.DateOfUserPrivilegeStatus -%]
78 <DateOfUserPrivilegeStatus>
79 [% privilege.UserPrivilegeStatus.DateOfUserPrivilegeStatus | xml %]
80 </DateOfUserPrivilegeStatus>
82 </UserPrivilegeStatus>
87 [% IF data.UserOptionalFields.UserLanguage -%]
88 [% FOREACH language IN data.UserOptionalFields.UserLanguage -%]
89 <UserLanguage>[% language | xml %]</UserLanguage>
92 [% IF data.UserOptionalFields.BlockOrTrap -%]
93 [% FOREACH block IN data.UserOptionalFields.BlockOrTrap -%]
95 <AgencyId>[% block.AgencyId | xml %]</AgencyId>
96 <BlockOrTrapType>[% block.BlockOrTrapType | xml %]</BlockOrTrapType>
97 [% IF block.ValidFromDate -%]
98 <ValidFromDate>[% block.ValidFromDate %]</ValidFromDate>
100 [% IF block.ValidToDate -%]
101 <ValidToDate>[% block.ValidToDate %]</ValidToDate>
106 </UserOptionalFields>