If your goal is to update or change OPF metadata, then you are best to use the Metadata Editing tool which is part of Sigil. It works by a single click on the toolbar no matter which file is open in CodeView.
Please remember to use Sigil menus to add or remove files, update manifest properties, maintain spine order, erc. As trying to manually edit the opf is fraught with difficulties as Sigil maintains the opf as fully machine parseable at ALL times. This can cause errors if focus leaves the OPF tab before all your desired changes are made.
|