My input xml:
<InfoReturn>
<?xml version = <LicenseInfo>
"1.0" encoding = "UTF-8"?>
<InfoReturn>
<LicenseInfo>
<licenseType>1</licenseType>
<licenseTypeDescAr>دائمة</licenseTypeDescAr>
<licenseTypeDescEn>Permanent</licenseTypeDescEn>
<centerId>1</centerId>
<centerNameA>مرور ديرة</centerNameA>
<centerNameE>TRAFFIC DEIRA</centerNameE>
<interimExpiryDate>2018-09-30T00:00:00.000Z</interimExpiryDate>
<licenseStatusArabic>مع المالك</licenseStatusArabic>
<licenseStatusEnglish>With Owner</licenseStatusEnglish>
<hasEyeTest>0</hasEyeTest>
<personId>1004257701</personId>
<isSpecialExpiryDesA>لا</isSpecialExpiryDesA>
<isSpecialExpiryDesE>NO</isSpecialExpiryDesE>
</LicenseInfo>
</InfoReturn>
</InfoReturn>
allowedAllowed fields will be passed as centerId|centerNameE|personIdcenterId | centerNameE | personId
The out put xmloutput XML which iI am looking will be
<InfoReturn>for is:
<?xml version = "1.0" <LicenseInfo>
encoding = "UTF-8"?>
<InfoReturn>
<LicenseInfo>
<centerId>1</centerId>
<centerNameE>TRAFFIC DEIRA</centerNameE>
<personId>1004257701</personId>
</LicenseInfo>
</InfoReturn>
</InfoReturn>
pleasePlease provide xsltXSLT for this solution.