倍福现货EL1502端子倍福plc视频教程
2) 在右边的界面中,选择"User Specified Entries",点击右边的"Add...";
3) 在弹出的对话框中点击"File System...",为 Location 输入框添加 DTD 文件所 在路径;
4) 使用别的文本编辑器打开此 DTD 文件,找到相应的文档类型声 明, 比如说 Hibernate 的配置文件:hibernate.cfg. 所需要的 DTD 文件为: hibernate-configuration-3.0.dtd 打开 hibernate-configuration-3.0.dtd 后,找到如下内容:




"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
4) "Key Type:"右边的下拉框中(有三个类型:Public ID,System ID,URI), 根据 hibernate-configuration-3.0.dtd 中的中的 PUBLIC, 选择 Public ID(或者直接选择"URI"也可);
5) "Key:" 右 边 的 文 本 框 中 , 将 hibernate-configuration-3.0.dtd 中 的 中的 PUBLIC 后的双引号内的内容 COPY,然后粘贴到"Key:"右边的文本框中, 注意,COPY 的内容不带双引号""; (如果上面第(4)步中选择的是 URI,则需要填入的是 dtd 文件中的 http://...部 分)
6) 点击"OK",即可看到"User Specified Entries"已有了所增加的 DTD(的 KEY); 同样,hibernate-mapping-3.0.dtd 这个 DTD 的加入,也可以如法炮制; 7) 重启 MyEclipse 即可,注意如果提示不出来, 并 在 状 态 栏 的 左 下 出 现 "Content Assist not available at the current location", 请在光标位置键入一个空格再使用 Alt+/试试;
(2) XSD(XML Schema) 1) 定位到: WIndow->Preferences->MyEclipse->XML->XML Catalog
2) 在右边的界面中,选择"User Specified Entries",点击右边的"Add...";
3) 在弹出的对话框中点击"File System...",为 Location 输入框添加 XSD 文件所 在路径;
4) .xsd 文件添加后,在下面的 Key:右边的文本框会自动添加一个 URI,如 Spring 的: http://www.springwork.org/schema/beans 如果没有自动添加,使用别的文本编辑器打开此.xsd 文件, 找 到 相 应 的 ns...> 名 称 空 间 声 明 , 比 如 说
ns="http://www.springwork.org/schema/beans" ns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.springwork.org/schema/beans">
4) "Key Type:"右边的下拉框中有 Namespace Name 与 Schema Location 两个选项, 如果是 DTD,这里有有三个类型:Public ID,System ID,URI; 将 Key Type 置为 Schema Location
5) 在 Key:右边的文本框中的 URI 后面加上/,再加上此 xsd 的名字, 如 spring-beans-2.5.xsd 的 key 为: http://www.springwork.org/schema/beans/spring-beans-2.5.xsd
6) 点击"OK",即可看到"User Specified Entries"已有了所增加的 xsd(的 KEY); 选中此 xsd 条目,下面的 Details 为: Location: D:ProgramsJavaspring-work-2.5.6.SEC01distresource sspring-beans-2.5.xsd URI: file:///D:/Programs/Java/spring-work-2.5.6.SEC01/dist/reso