用不正确的url验证jdoconfig [英] Validating jdoconfig with incorrect url
问题描述
我正在使用jdo并使用jdoconfig.xml配置持久性管理器
I am using jdo and configuring the persistence manager with jdoconfig.xml
然而,无论在哪里找到有关jdoconfig.xml的文档,它都声明 http://java.sun.com/xml/ns/jdo/jdoconfig 应该用于验证。
However everywhere I find documentation about jdoconfig.xml it states that http://java.sun.com/xml/ns/jdo/jdoconfig should be used for validation.
<jdoconfig xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://java.sun.com/xml/ns/jdo/jdoconfig">
etc
此网址指向不存在的文件,我的xml验证程序报告错误。
即使使用它的目的是什么,我们是否可以相信网址不会改变,我们所有的xml文件都会突然停止验证?
This url points to a nonexistent file and my xml validator reports an error. What is the purpose of even using this, can we ever trust that the urls will not change and all our xml files all of a sudden stops validating?
有没有人知道新的网址?
Does anyone know the new url?
推荐答案
xmlns是不是真正的文件/目录,更像是命名空间,所以不应该存在!附加版本以获取真实的XSD文件,即 http://java.sun.com/xml/ ns / jdo / jdoconfig_3_0.xsd
The xmlns is not a real file/directory, more a namespace, so ought not exist! The version is appended to get the real XSD file, namely http://java.sun.com/xml/ns/jdo/jdoconfig_3_0.xsd
可能
<jdoconfig xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/jdo/jdoconfig http://java.sun.com/xml/ns/jdo/jdoconfig_3_0.xsd">
这篇关于用不正确的url验证jdoconfig的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!