I found an XML editor (Microsoft Notepad-XML 2007) that seems to work very nicely, however, to edit library files, I needed to place a copy of the "eagle.dtd" file in the directory with the libraries.
I still am not sure I can truxt the editor quite yet, because when load an existing library file into the editor and save it, it generates warnings.
The editor cleans up the library file and adds indenting, which makes it real nice for reading and it has collapse and expand capabilites for the tags which really aid in copying sections of code.
My problem is that when the editor cleans up the code, it uses the eagle.dtd file as the syntax template, and it ends up inserting parameters which are called out in the eagle.dtd file, but apparently not yet handled by eagle.
Specifically, I want to add the EAGLEUP attribute to many of my library devices that have 3d models available.
Well, when I do this manually in Eagle, it creates an attribute tag like:
<attribute name="EAGLEUP" value="R0805" constant="no"/>
When I run the XML editor on it, it expands the tag to:
<attribute name="EAGLEUP" value="R0805" constant="no" rot="R0" display="value" />
Causing the following type of error when trying to open up the library:
Loading C:/Users/Bill/Dropbox/eagle/lbr64/eagleup/passives_test1.lbr ...
I get the following message when attempting to open the library file in eagle:
Warning(s):
line 280: unknown attribute 'display' in tag <attribute>
line 280: unknown attribute 'rot' in tag <attribute>
However, if I use the library, it does seem to work, but the warnings bother me enough to make me wary of making further changes.
There are other tags which I noticed get expanded with extra parameters based on the eagle.dtd file, but they do not generate any warning messages, so I assume Eagle is handling them okay.
Am I seeing a bug, or is there a better way that I can edit the library files?
I could modify the eagle.dtd file, but that seems rather risky since I don't know why the extra parameters are declared.
Thanks