Code:
$awk -F '[:"<>]' -v VM="Equipment,AntennaUnitGroup,AntennaNearUnit,RetSubUnit" '{split(VM,M,",")}
/SubNetwork/{gsub(" id=","=",$0);S=$3$4;}
/MeContext/{gsub(" id=","=",$0);P=$3$4}
/ManagedElement/{gsub(" id=","=",$0);K=$3$4;a=0}
/VsDataContainer id=/{if(T){a++;T=T","M[a]"="$4;}else{a++;T=M[a]"="$4}}
/<es:el>/{if(a==4){print S,P,K,T"\t"$4;a=0;T=""}else{print S,P,K,T,M[4]"=1""\t"$4;a=0;T=""}} ' OFS=, file
SubNetwork=ONRM_ROOT_MO_R,MeContext=LP101,ManagedElement=1,Equipment=1,AntennaUnitGroup=1,AntennaNearUnit=1,RetSubUnit=1 80
SubNetwork=ONRM_ROOT_MO_R,MeContext=LP101,ManagedElement=1,Equipment=2,AntennaUnitGroup=1,AntennaNearUnit=1,RetSubUnit=1 30
SubNetwork=ONRM_ROOT_MO_R,MeContext=LP101,ManagedElement=1,Equipment=3,AntennaUnitGroup=1,AntennaNearUnit=1,RetSubUnit=1 80
SubNetwork=ONRM_ROOT_MO_R,MeContext=LP102,ManagedElement=1,Equipment=1,AntennaUnitGroup=1,AntennaNearUnit=1,RetSubUnit=1 20
SubNetwork=ONRM_ROOT_MO_R,MeContext=LP102,ManagedElement=1,Equipment=2,AntennaUnitGroup=1,AntennaNearUnit=1,RetSubUnit=1 100
SubNetwork=ONRM_ROOT_MO_R,MeContext=LP102,ManagedElement=1,Equipment=3,AntennaUnitGroup=1,AntennaNearUnit=1,RetSubUnit=1 80
SubNetwork=ONRM_ROOT_MO_R,MeContext=LP103,ManagedElement=1,Equipment=1,AntennaUnitGroup=1,AntennaNearUnit=1,RetSubUnit=1 80
SubNetwork=ONRM_ROOT_MO_R,MeContext=LP103,ManagedElement=1,Equipment=2,AntennaUnitGroup=1,AntennaNearUnit=1,RetSubUnit=1 100
SubNetwork=ONRM_ROOT_MO_R,MeContext=LP103,ManagedElement=1,Equipment=3,AntennaUnitGroup=1,AntennaNearUnit=1,RetSubUnit=1 90