Depending on what you're trying to do, you'd either change an existing tag, or add a new one.
For the profile-level items, the existing tags are listed at the bottom of the XML structure, right above the closing "</Profile>" tag, which is also where you can add a new tag.
For command-level items, you need to edit or add tags for that specific command.
If you want to lock every command within your profile from being edited, you can do a find and replace to change all occurrences of "<CL>0</CL>" to "<CL>1</CL>", as that cannot be done at the profile level.
Assuming you also want to prevent users from adding command to your profile, you'd then also want to change "<CR>0</CR>" to "<CR>1</CR>", at the profile level.
Lastly, to prevent the profile from being exported as an editable XML file, you'd set change "<BE>0</BE>" to "<BE>1</BE>" at the profile level, however note what the documentation mentions about this flag:
Note that if you distribute your profile initially as a compressed binary and this flag is set to 1, there is no provided way to change that profile back.
In other words, if you overwrite your existing profile with this version, you will never be able to export it as an editable file again, so if you have all three flags set, your profile cannot be edited at all, even by you.
The only way to "undo" this would be to delete the profile from the database, and import the XML-formatted version of your profile again with the flags set back to 0.