<分区>
我的 J2EE Web 项目的 WEB-INF 文件夹中有一个 TLD(标记库描述符)文件。我从教科书中复制了 TLD 文件。在 Eclipse EE 中,在 taglib 行附近,它给了我错误:
The markup in the document preceding the root element must be well-formed.
XML/TLD 文件:
<?xml version="1.0" encoding="ISO-8859-1" ?>
< taglib xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd" version="2.0">
<tlib-version>1.2</tlib-version>
<uri>DiceFunctions</uri>
<function>
<name>rollIt</name>
<function-class>foo.DiceRoller</function-class>
<function-signature>
int rollDice()
</function-signature>
</function>
</taglib>
我该如何解决这个错误?