1 [% FOREACH id IN data.UserId -%]
4 [% id.UserIdentifierValue | xml %]
6 [% IF id.UserIdentifierType -%]
8 [% id.UserIdentifierType | xml %]
18 [% IF data.UserOptionalFields -%]
20 [% IF data.UserOptionalFields.NameInformation -%]
22 <PersonalNameInformation>
23 <StructuredPersonalUserName>
24 [% IF data.UserOptionalFields.NameInformation.GivenName -%]
25 <GivenName>[% data.UserOptionalFields.NameInformation.GivenName | xml %]</GivenName>
27 <Surname>[% data.UserOptionalFields.NameInformation.Surname | xml %]</Surname>
28 [% IF data.UserOptionalFields.NameInformation.Prefix -%]
29 <Prefix>[% data.UserOptionalFields.NameInformation.Prefix %]</Prefix>
31 [% IF data.UserOptionalFields.NameInformation.Suffix -%]
32 <Suffix>[% data.UserOptionalFields.NameInformation.Suffix %]</Suffix>
34 [% IF data.UserOptionalFields.NameInformation.Initials -%]
35 <Initials>[% data.UserOptionalFields.NameInformation.Initials %]</Initials>
37 </StructuredPersonalUserName>
38 </PersonalNameInformation>
41 [% IF data.UserOptionalFields.UserAddressInformation -%]
42 [% FOREACH element IN data.UserOptionalFields.UserAddressInformation -%]
43 <UserAddressInformation>
44 <UserAddressRoleType>[% element.UserAddressRoleType | xml %]</UserAddressRoleType>
45 [% IF element.PhysicalAddress -%]
48 <Line1>[% element.PhysicalAddress.Line1 | xml %]</Line1>
49 [% IF element.PhysicalAddress.Line2 -%]
50 <Line2>[% element.PhysicalAddress.Line2 | xml %]</Line2>
52 [% IF element.PhysicalAddress.Locality -%]
53 <Locality>[% element.PhysicalAddress.Locality | xml %]</Locality>
55 [% IF element.PhysicalAddress.Region -%]
56 <Region>[% element.PhysicalAddress.Region | xml %]</Region>
58 [% IF element.PhysicalAddress.PostalCode -%]
59 <PostalCode>[% element.PhysicalAddress.PostalCode | xml %]</PostalCode>
61 [% IF element.PhysicalAddress.Country -%]
62 <Country>[% element.PhysicalAddress.Country | xml %]</Country>
66 [% ELSIF element.ElectronicAddress -%]
68 <ElectronicAddressType>[% element.ElectronicAddress.Type | xml %]</ElectronicAddressType>
69 <ElectronicAddressData>[% element.ElectronicAddress.Data | xml %]</ElectronicAddressData>
72 </UserAddressInformation>
75 [% IF data.UserOptionalFields.UserPrivilege -%]
76 [% FOREACH privilege IN data.UserOptionalFields.UserPrivilege -%]
78 <AgencyId>[% privilege.AgencyId | xml -%]</AgencyId>
79 <AgencyUserPrivilegeType>[% privilege.AgencyUserPrivilegeType | xml %]</AgencyUserPrivilegeType>
80 [% IF privilege.ValidFromDate -%]
81 <ValidFromDate>[% privilege.ValidFromDate | xml %]</ValidFromDate>
83 [% IF privilege.ValidToDate -%]
84 <ValidToDate>[% privilege.ValidToDate | xml %]</ValidToDate>
86 [% IF privilege.UserPrivilegeDescription -%]
87 <UserPrivilegeDescription>[% privilege.UserPrivilegeDescription | xml %]</UserPrivilegeDescription>
89 [% IF privilege.UserPrivilegeStatus -%]
91 <UserPrivilegeStatusType>
92 [% privilege.UserPrivilegeStatus.UserPrivilegeStatusType | xml %]
93 </UserPrivilegeStatusType>
94 [% IF privilege.UserPrivilegeStatus.DateOfUserPrivilegeStatus -%]
95 <DateOfUserPrivilegeStatus>
96 [% privilege.UserPrivilegeStatus.DateOfUserPrivilegeStatus | xml %]
97 </DateOfUserPrivilegeStatus>
99 </UserPrivilegeStatus>
104 [% IF data.UserOptionalFields.UserLanguage -%]
105 [% FOREACH language IN data.UserOptionalFields.UserLanguage -%]
106 <UserLanguage>[% language | xml %]</UserLanguage>
109 [% IF data.UserOptionalFields.BlockOrTrap -%]
110 [% FOREACH block IN data.UserOptionalFields.BlockOrTrap -%]
112 <AgencyId>[% block.AgencyId | xml %]</AgencyId>
113 <BlockOrTrapType>[% block.BlockOrTrapType | xml %]</BlockOrTrapType>
114 [% IF block.ValidFromDate -%]
115 <ValidFromDate>[% block.ValidFromDate %]</ValidFromDate>
117 [% IF block.ValidToDate -%]
118 <ValidToDate>[% block.ValidToDate %]</ValidToDate>
123 </UserOptionalFields>