3

クラスパス jar に存在する xsd に対して Eclipse Indigo で xml を検証するにはどうすればよいですか? 現在、xsd の Web 公開バージョンに対してのみ検証しているようです。たとえば、私のxmlには次のものがあります。

    xmlns:gfe="http://www.springframework.org/schema/gemfire"
    xsi:schemaLocation="http://www.springframework.org/schema/gemfire   http://www.springframework.org/schema/gemfire/spring-gemfire-1.2.xsd"

Eclipse では、検証はhttp://www.springframework.org/schema/gemfire/spring-gemfire-1.2.xsdにあるドキュメントに対して行われます。ただし、Eclipse の外部でアプリケーションを実行すると、クラスパスのライブラリ jar ファイルに含まれている xsd に対して検証が行われます。

4

1 に答える 1

2

EclipseでサポートされているXMLカタログ機能を使用します。

http://www.eclipse.org/webtools/community/tutorials/XMLCatalog/XMLCatalogTutorial.html

于 2012-11-02T14:44:07.197 に答える