eclipse xml自动提示

找到所需要的dtd文件;

window->preferences->xml->xml catalog ;

public id 输入对应的字符串;