Thanks, but ...
a) By "manually input code" do you mean instead of an XML file location? That will fail as file not found, obviously. What did you more specifically mean?
b) I used Xcode to read the old .xml file. Put your code in there and saved it. This should be the correct macOS .xml text format. The crash is instant and briefly as follows.
Not an exciting outcome ... it crashed the app a couple of times.
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: Namespace SIGNAL, Code 6 Abort trap: 6
Terminating Process: sadptoolsmac [806]
Application Specific Information:
abort() called
Invalid dylib load. Clients should not load the unversioned libcrypto dylib as it does not have a stable ABI.
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x7ff811f42846 __pthread_kill + 10
1 libsystem_pthread.dylib 0x7ff811f7db12 pthread_kill + 259
2 libsystem_c.dylib 0x7ff811e9c4c6 abort + 126
3 libcrypto.dylib 0x7ffd2029bd74 __report_load.cold.1 + 36
4 libcrypto.dylib 0x7ffd2029ba87 __report_load + 367
5 dyld 0x7ff811bed642 invocation function for block in dyld4::Loader::findAndRunAllInitializers(dyld4::RuntimeState&) const + 290
6 dyld 0x7ff811c1eeba invocation function for block in dyld3::MachOAnalyzer::forEachInitializer(Diagnostics&, dyld3::MachOAnalyzer::VMAddrConverter const&, void (unsigned int) block_pointer, void const*) const + 234
7 dyld 0x7ff811c4d534 invocation function for block in mach_o::Header::forEachSection(void (mach_o::Header::SectionInfo const&, bool&) block_pointer) const + 271
8 dyld 0x7ff811c4a8a5 mach_o::Header::forEachLoadCommand(void (load_command const*, bool&) block_pointer) const + 191
9 dyld 0x7ff811c4be1a mach_o::Header::forEachSection(void (mach_o::Header::SectionInfo const&, bool&) block_pointer) const + 116
10 dyld 0x7ff811c1ea9c dyld3::MachOAnalyzer::forEachInitializer(Diagnostics&, dyld3::MachOAnalyzer::VMAddrConverter const&, void (unsigned int) block_pointer, void const*) const + 470
11 dyld 0x7ff811bed4aa dyld4::Loader::findAndRunAllInitializers(dyld4::RuntimeState&) const + 150
12 dyld 0x7ff811bf3cdb dyld4::JustInTimeLoader::runInitializers(dyld4::RuntimeState&) const + 21
13 dyld 0x7ff811bed81c dyld4::Loader::runInitializersBottomUp(dyld4::RuntimeState&, dyld3::Array<dyld4::Loader const*>&, dyld3::Array<dyld4::Loader const*>&) const + 276
14 dyld 0x7ff811bf1269 dyld4::Loader::runInitializersBottomUpPlusUpwardLinks(dyld4::RuntimeState&) const::$_0:

perator()() const + 147
15 dyld 0x7ff811bed8c5 dyld4::Loader::runInitializersBottomUpPlusUpwardLinks(dyld4::RuntimeState&) const + 115
16 dyld 0x7ff811c087cc dyld4::APIs::dlopen_from(char const*, int, void*)::$_0:

perator()() const + 1404
17 dyld 0x7ff811c02ac9 dyld4::APIs::dlopen_from(char const*, int, void*) + 677
18 libhpr.dylib 0x34f6275e3 HPR_LoadDSoEx + 51
19 libSadp.dylib 0x34f4d8866 NetSDK::CDependLibLoader::LoadDSo(char*) + 28
20 libSadp.dylib 0x34f4d8631 NetSDK::CDependLibLoader::LoadLib(int) + 211
21 libSadp.dylib 0x34f510a05 NetSDK::CSSLTrans::LoadOpenSSLLib() + 53
22 libSadp.dylib 0x34f510d1b NetSDK::CSSLTrans::CreateSSLTrans(int, unsigned int) + 39
23 libSadp.dylib 0x34f516706 NetSDK::Interim_CreateSSLTransEx(unsigned int) + 80
24 libSadp.dylib 0x34f51e92f NetSDK::CHIKEncrypt::GeneratePublicKey(unsigned char*, int*) + 43
25 libSadp.dylib 0x34f51f87a NetSDK::Interim_GeneratePublicKey(void*, unsigned char*, int*) + 45
26 libSadp.dylib 0x34f48859a SADP::CEncrypt::GetRsaPublicKey1024(unsigned char*, int*) + 74
27 libSadp.dylib 0x34f48f585 SADP::CMulticastProtocol:

ackageExchangeCode(char const*, char const*, char*, unsigned int&) + 133
28 libSadp.dylib 0x34f4b09ff SADP::CSadpService::GetExchangeCode(char const*, unsigned char, unsigned char) + 207
29 libSadp.dylib 0x34f47b2ad SADP::CSADPGlobalCtrl::GetExchangecode_V30(tagINTERNAL_SADP_DEVICE_INFO*) + 397
30 libSadp.dylib 0x34f47fc76 SADP::CSADPGlobalCtrl::ResetPasswd(char const*, tagSADP_RESET_PARAM_V50 const*, tagSADP_DEV_LOCK_INFO*, unsigned char) + 534
31 libSadp.dylib 0x34f4848ea SADP_ResetPasswd_V50 + 426
32 sadptoolsmac 0x1058f347d -[SadpBridge resetPasswordWithXmlWithArguments:] + 1808
33 sadptoolsmac 0x1058f69b8 closure #1 in AppDelegate.applicationDidFinishLaunching(_

+ 1016
34 sadptoolsmac 0x1058f7765 thunk for @escaping @callee_guaranteed (@guaranteed FlutterMethodCall, @guaranteed @escaping @callee_guaranteed (@in_guaranteed Any?) -> ()) -> () + 101
35 FlutterMacOS 0x107c9460c 0x107c0b000 + 562700
36 FlutterMacOS 0x107c23707 0x107c0b000 + 100103
37 FlutterMacOS 0x108630955 0x107c0b000 + 10639701
38 FlutterMacOS 0x108644d6a 0x107c0b000 + 10722666
39 FlutterMacOS 0x108645708 0x107c0b000 + 10725128
40 FlutterMacOS 0x108641cbc 0x107c0b000 + 10710204
41 FlutterMacOS 0x108634b37 0x107c0b000 + 10656567
42 FlutterMacOS 0x10862821f 0x107c0b000 + 10605087
43 FlutterMacOS 0x107c27113 0x107c0b000 + 114963
44 FlutterMacOS 0x107c8f8ca 0x107c0b000 + 542922
45 FlutterMacOS 0x107c8e801 0x107c0b000 + 538625
46 FlutterMacOS 0x107c8e308 0x107c0b000 + 537352
47 FlutterMacOS 0x107c8e859 0x107c0b000 + 538713
48 CoreFoundation 0x7ff812067a40 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
49 CoreFoundation 0x7ff8120679e2 __CFRunLoopDoSource0 + 157
50 CoreFoundation 0x7ff81206779d __CFRunLoopDoSources0 + 203
51 CoreFoundation 0x7ff812066406 __CFRunLoopRun + 973
52 CoreFoundation 0x7ff812065a02 CFRunLoopRunSpecific + 536
53 HIToolbox 0x7ff81db580d4 RunCurrentEventLoopInMode + 281
54 HIToolbox 0x7ff81db5af97 ReceiveNextEventCommon + 499
55 HIToolbox 0x7ff81dce419a _BlockUntilNextEventMatchingListInModeWithFilter + 63
56 AppKit 0x7ff815ac9dc1 _DPSNextEvent + 912
57 AppKit 0x7ff816557c17 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1263
58 AppKit 0x7ff815abaea9 -[NSApplication run] + 610
59 AppKit 0x7ff815a8e005 NSApplicationMain + 803
60 sadptoolsmac 0x1058f797c main + 28
61 dyld 0x7ff811bd8530 start + 3056