toXML method
Implementation
String toXML() {
return '''
<deviceLockerInfo lockMethod="$lockMethod" >
${ipAndPort.toXML()}
<applicationList>
${applicationList.map((e) => e.toXML()).join()}
</applicationList>
</deviceLockerInfo>
''';
}