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.StructuredAddress.Line1 | xml %]</Line1>
32 [% IF element.PhysicalAddress.StructuredAddress.Line2 -%]
33 <Line2>[% element.PhysicalAddress.StructuredAddress.Line2 | xml %]</Line2>
35 [% IF element.PhysicalAddress.StructuredAddress.Locality -%]
36 <Locality>[% element.PhysicalAddress.StructuredAddress.Locality | xml %]</Locality>
38 [% IF element.PhysicalAddress.StructuredAddress.Region -%]
39 <Region>[% element.PhysicalAddress.StructuredAddress.Region | xml %]</Region>
41 [% IF element.PhysicalAddress.StructuredAddress.Country -%]
42 <Country>[% element.PhysicalAddress.StructuredAddress.Country | xml %]</Country>
44 [% IF element.PhysicalAddress.StructuredAddress.PostalCode -%]
45 <PostalCode>[% element.PhysicalAddress.StructuredAddress.PostalCode | xml %]</PostalCode>
48 <PhysicalAddressType>[% element.PhysicalAddress.Type | xml %]</PhysicalAddressType>
50 [% ELSIF element.ElectronicAddress -%]
52 <ElectronicAddressType>[% element.ElectronicAddress.Type | xml %]</ElectronicAddressType>
53 <ElectronicAddressData>[% element.ElectronicAddress.Data | xml %]</ElectronicAddressData>
56 </UserAddressInformation>
59 [% IF data.UserOptionalFields.UserPrivilege -%]
60 [% FOREACH privilege IN data.UserOptionalFields.UserPrivilege -%]
62 <AgencyId>[% privilege.AgencyId | xml -%]</AgencyId>
63 <AgencyUserPrivilegeType>[% privilege.AgencyUserPrivilegeType | xml %]</AgencyUserPrivilegeType>
64 [% IF privilege.ValidFromDate -%]
65 <ValidFromDate>[% privilege.ValidFromDate | xml %]</ValidFromDate>
67 [% IF privilege.ValidToDate -%]
68 <ValidToDate>[% privilege.ValidToDate | xml %]</ValidToDate>
70 [% IF privilege.UserPrivilegeDescription -%]
71 <UserPrivilegeDescription>[% privilege.UserPrivilegeDescription | xml %]</UserPrivilegeDescription>
73 [% IF privilege.UserPrivilegeStatus -%]
75 <UserPrivilegeStatusType>
76 [% privilege.UserPrivilegeStatus.UserPrivilegeStatusType | xml %]
77 </UserPrivilegeStatusType>
78 [% IF privilege.UserPrivilegeStatus.DateOfUserPrivilegeStatus -%]
79 <DateOfUserPrivilegeStatus>
80 [% privilege.UserPrivilegeStatus.DateOfUserPrivilegeStatus | xml %]
81 </DateOfUserPrivilegeStatus>
83 </UserPrivilegeStatus>
88 [% IF data.UserOptionalFields.UserLanguage -%]
89 [% FOREACH language IN data.UserOptionalFields.UserLanguage -%]
90 <UserLanguage>[% language | xml %]</UserLanguage>
93 [% IF data.UserOptionalFields.BlockOrTrap -%]
94 [% FOREACH block IN data.UserOptionalFields.BlockOrTrap -%]
96 <AgencyId>[% block.AgencyId | xml %]</AgencyId>
97 <BlockOrTrapType>[% block.BlockOrTrapType | xml %]</BlockOrTrapType>
98 [% IF block.ValidFromDate -%]
99 <ValidFromDate>[% block.ValidFromDate %]</ValidFromDate>
101 [% IF block.ValidToDate -%]
102 <ValidToDate>[% block.ValidToDate %]</ValidToDate>
107 </UserOptionalFields>