問題描述
我正在使用 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
這個 url 指向一個不存在的文件,我的 xml 驗證器報告了一個錯誤.甚至使用它的目的是什么,我們是否可以相信 url 不會改變并且我們所有的 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?
有人知道新網址嗎?
推薦答案
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的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!