yoramdavid wrote:... I tried both xmllint and XML Copy Editor and got errors, but do not know how to fix them.
XML Copy Editor tells me there is a duplicate attribute but I do not find it. ...
Here are the two elements that have errors reported by xmllint:
You can see there that each element has several attributes repeated--this is an error, by definition.
The error can be resolved by removing the repeated attribute definitions so that each element has only one definition for any particular attribute.
Simple enough, but which ones should be removed?
In some cases, it obviously doesn't matter because both definitions are identical; just take one--either one--out. The one remaining will then be unique--no duplicates.
In the cases where the attributes are defined twice, each time with different values, your guess is as good as mine as to which is the one to remove. I generally remove the first one, under the theory that the second one is later and therefore correct. That's just a theory; I have no idea if it's correct but it at least allows the file to load.
The patched-up elements, then, look like this: