3 [% data.UserId.UserIdentifierValue | xml %]
5 [% IF data.UserId.UserIdentifierType -%]
7 [% data.UserId.UserIdentifierType | xml %]
10 [% IF data.UserId.AgencyId -%]
12 [% data.UserId.AgencyId %]
16 [% IF data.UserOptionalFields -%]
18 [% IF data.UserOptionalFields.NameInformation -%]
20 <PersonalNameInformation>
21 <StructuredPersonalUserName>
22 [% IF data.UserOptionalFields.NameInformation.GivenName -%]
23 <GivenName>[% data.UserOptionalFields.NameInformation.GivenName | xml %]</GivenName>
25 <Surname>[% data.UserOptionalFields.NameInformation.Surname | xml %]</Surname>
26 [% IF data.UserOptionalFields.NameInformation.Prefix -%]
27 <Prefix>[% data.UserOptionalFields.NameInformation.Prefix %]</Prefix>
29 [% IF data.UserOptionalFields.NameInformation.Suffix -%]
30 <Suffix>[% data.UserOptionalFields.NameInformation.Suffix %]</Suffix>
32 [% IF data.UserOptionalFields.NameInformation.Initials -%]
33 <Initials>[% data.UserOptionalFields.NameInformation.Initials %]</Initials>
35 </StructuredPersonalUserName>
36 </PersonalNameInformation>
39 [% IF data.UserOptionalFields.UserAddressInformation -%]
40 [% FOREACH element IN data.UserOptionalFields.UserAddressInformation -%]
41 <UserAddressInformation>
42 <UserAddressRoleType>[% element.AddressRoleType | xml %]</UserAddressRoleType>
43 [% IF element.PhysicalAddress -%]
46 <Line1>[% element.PhysicalAddress.Line1 | xml %]</Line1>
47 [% IF element.PhysicalAddress.Line2 -%]
48 <Line2>[% element.PhysicalAddress.Line2 | xml %]</Line2>
50 [% IF element.PhysicalAddress.Locality -%]
51 <Locality>[% element.PhysicalAddress.Locality | xml %]</Locality>
53 [% IF element.PhysicalAddress.Region -%]
54 <Region>[% element.PhysicalAddress.Region | xml %]</Region>
56 [% IF element.PhysicalAddress.PostalCode -%]
57 <PostalCode>[% element.PhysicalAddress.PostalCode | xml %]</PostalCode>
59 [% IF element.PhysicalAddress.Country -%]
60 <Country>[% element.PhysicalAddress.Country | xml %]</Country>
64 [% ELSIF element.ElectronicAddress -%]
66 <ElectronicAddressType>[% element.ElectronicAddress.Type | xml %]</ElectronicAddressType>
67 <ElectronicAddressData>[% element.ElectronicAddress.Data | xml %]</ElectronicAddressData>
70 </UserAddressInformation>
73 [% IF data.UserOptionalFields.UserPrivilege -%]
74 [% FOREACH privilege IN data.UserOptionalFields.UserPrivilege -%]
76 <AgencyId>[% privilege.AgencyId | xml -%]</AgencyId>
77 <AgencyUserPrivilegeType>[% privilege.AgencyUserPrivilegeType | xml %]</AgencyUserPrivilegeType>
78 [% IF privilege.ValidFromDate -%]
79 <ValidFromDate>[% privilege.ValidFromDate | xml %]</ValidFromDate>
81 [% IF privilege.ValidToDate -%]
82 <ValidToDate>[% privilege.ValidToDate | xml %]</ValidToDate>
84 [% IF privilege.UserPrivilegeDescription -%]
85 <UserPrivilegeDescription>[% privilege.UserPrivilegeDescription | xml %]</UserPrivilegeDescription>
87 [% IF privilege.UserPrivilegeStatus -%]
89 <UserPrivilegeStatusType>
90 [% privilege.UserPrivilegeStatus.UserPrivilegeStatusType | xml %]
91 </UserPrivilegeStatusType>
92 [% IF privilege.UserPrivilegeStatus.DateOfUserPrivilegeStatus -%]
93 <DateOfUserPrivilegeStatus>
94 [% privilege.UserPrivilegeStatus.DateOfUserPrivilegeStatus | xml %]
95 </DateOfUserPrivilegeStatus>
97 </UserPrivilegeStatus>
102 [% IF data.UserOptionalFields.UserLanguage -%]
103 [% FOREACH language IN data.UserOptionalFields.UserLanguage -%]
104 <UserLanguage>[% language | xml %]</UserLanguage>
107 [% IF data.UserOptionalFields.BlockOrTrap -%]
108 [% FOREACH block IN data.UserOptionalFields.BlockOrTrap -%]
110 <AgencyId>[% block.AgencyId | xml %]</AgencyId>
111 <BlockOrTrapType>[% block.BlockOrTrapType | xml %]</BlockOrTrapType>
112 [% IF block.ValidFromDate -%]
113 <ValidFromDate>[% block.ValidFromDate %]</ValidFromDate>
115 [% IF block.ValidToDate -%]
116 <ValidToDate>[% block.ValidToDate %]</ValidToDate>
121 </UserOptionalFields>