<layer> <name>Special Permits (SP)</name> <fields all="false" /> <field name="SP_CODE" alias="Special Permit" popuponly="false" /> </fields> <links> <link includeinresults="true" field="SP_CODE" alias="" tooltip=""> <linkprefix>http://gis.sanangelotexas.us/cityscans/Planning/Special Permits/SP</linkprefix> <linksuffix>.pdf</linksuffix> <iconfield></iconfield> <iconprefix></iconprefix> <iconsuffix></iconsuffix> </link> </links> <zoomscale>4500</zoomscale> <forcescale>true</forcescale> </layer>
<fields all="true" />because of the forward slash at the end and the fact that the XML element does not have any children. Your original XML had the tag closed but had a child which ended up orphaned.
<layer> <name>Special Permits (SP)</name> <fields all="true" /> <links> <link includeinresults="true" field="SP_CODE" alias="SP" tooltip="SP Tip"> <linkprefix>http://gis.sanangelotexas.us/cityscans/Planning/Special Permits/SP</linkprefix> <linksuffix>.pdf</linksuffix> <iconfield></iconfield> <iconprefix></iconprefix> <iconsuffix></iconsuffix> </link> </links> <zoomscale>4500</zoomscale> <forcescale>true</forcescale> </layer>