Using Password Safe 3.36 on Windows 7, SP1, 64-bit, and a database with several entries, at least one named password policy, some entries using the default policy and some using the named policy.
Open the database
Right click an entry that uses the default password policy, and Export Entry To, XML format
Enter the combination to export the entry.
Export of 1 entry is reported as completed successfully.
Now try to import from the XML just created, using File, Import From, XML format.
(Import under Group = No, Import to change passwords of existing entries only = unticked, but it other settings don't seem to make any difference.)
Password Safe says "File: pwsafe.xml failed validation against XML Schema:"
View Report gives me:
Report of Import_XML function started at 2015/09/12 19:50:08.348 on database C:\Users\Mitch\Desktop\pwsafe.psafe3 Start Report XML file being imported: C:\Users\Mitch\Desktop\pwsafe.xml Error (80004005): line 23 character 25 Element 'NamedPasswordPolicies' cannot be empty according to the DTD/Schema. Error (C00CE225): line 35 character 0 Validate failed. File: pwsafe.xml failed validation against XML Schema: End Report --------------------------------------------------------------------------------
I get a similar failure if I import that XML into a new, empty database.
If I export a single entry (right click, export entry, etc) that uses a name policy, I can import that XML.
Attached are :
pwsafe.psafe3 - sample database, combination "1234"
pwsafe.xml - exported entry with default policy
pwsafe2.xml - exported entry with named policy
Fixed by DrK in commit bd42c97 - will be in next release.