<?xml version="1.0" encoding="UTF-8"?>
<wcs:GetCoverage xmlns:wcs="http://www.opengis.net/wcs/2.0"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/wcs/2.0 ../wcsAll.xsd"
service="WCS" version="2.0.0">
<wcs:CoverageId>C0001</wcs:CoverageId>
</wcs:GetCoverage>
我正在尝试使用 IntelliJ IDEA
验证此 XML
文件,但出现错误 -
External resource http://www.opengis.net/gml/3.2 is not registered
Premature end of file.
我最近切换到 IntelliJ
,所以同一段 XML
在 NetBeans
上验证良好,模式 ../wcsAll .xsd
位于正确的位置。
四处搜索,我发现了将 "http://www.opengis.net/gml/3.2"
放在忽略外部资源列表中的建议;但这也没有帮助。
最佳答案
对于遇到此问题的任何其他人,您必须删除 .idea 隐藏文件夹中的 workspace.xml!
关于java - 智能理念 | xml验证错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4531281/