---
title: "eclipse myeclipse 关联dtd文件 "
author: "onlyor"
date: "2013-06-19T16:26:34Z"
tags: []
categories: ["开源软件"]
slug: "eclipse-myeclipse-dtd"
draft: false
lastmod: "2013-06-19T16:26:34Z"
id: 1889285
url: "https://onlyor.iteye.com/blog/1889285"
---

myeclipse:

 

1,先找到 XML 的 dtd 文件

 

2，后 window---&gt;preference---&gt;Myeclipse Enterprise WorkBench---&gt;Files and Editors---&gt;XML---&gt;XML catalog---&gt;User Specified Entries---&gt;add-&gt; 其中 key Type 选择 URI ， Key 选择 XML 文件中 docType 中引用的那个 key 地址， Location 选择 dtd 文件在本地硬盘上的完整路径。

 

 

 

eclipse:

 

1,先找到 XML 的 dtd 文件

 

2，后 window---&gt;preference---&gt;XML---&gt;XML catalog---&gt;User Specified Entries---&gt;add-&gt; 其中 key Type 选择 URI ， Key 选择 XML 文件中 docType 中引用的那个 key 地址， Location 选择 dtd 文件在本地硬盘上的完整路径。

 

 

 

注意：完成以上操作后，关闭 XML 文件，重新打开就可以了。