---
title: "eclipse中xsd的验证问题"
author: "onlyor"
date: "2012-09-13T11:01:31Z"
tags: []
categories: ["编程语言"]
slug: "eclipse-xsd"
draft: false
lastmod: "2012-09-13T11:01:31Z"
id: 1677582
url: "https://onlyor.iteye.com/blog/1677582"
---

windows --&gt; prefreneces --&gt; XML Catalog

在User Specified Entries添加xsd文件。

**有两个地方要注意:**  
1.Key type设置为Schema location;  
2.key 设置虚拟xsd地址，即

xsi:schemaLocation=

" [http://www.springframework.org/schema/task](http://www.springframework.org/schema/task)

  [http://www.springframework.org/schema/task/spring-task-3.0.xsd](http://www.springframework.org/schema/task/spring-task-3.0.xsd) "

名称对后边的这一个。