2014-09-29 111 views
-1

例如像這樣關於XML聲明

<beans xmlns="http://www.springframework.org/schema/beans" 
    xmlns:context="http://www.springframework.org/schema/context" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation=" 
    http://www.springframework.org/schema/beans   
    http://www.springframework.org/schema/beans/spring-beans-3.0.xsd 
    http://www.springframework.org/schema/context 
    http://www.springframework.org/schema/context/spring-context-3.0.xsd"> 

    <context:component-scan base-package="com.tutorialspoint" /> 

    <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"> 
      <property name="prefix" value="/WEB-INF/jsp/" /> 
      <property name="suffix" value=".jsp" /> 
    </bean> 

</beans> 

這裏是 http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context/spring-context-3.0.xsd

我想知道什麼時候該XSD文件下載

如果我的電腦沒有連接到互聯網 我以爲我的電腦無法讀取這個XML文件。 ,因爲我的電腦無法下載xsd文件

但我的電腦顯示此xml文件 爲什麼?

什麼是XSD呢?

我的英語,所以......不好。 對不起。當你問一個XML解析器來驗證文檔的結構,它描述了一種文件的模式

回答

0

XSD使用。

如果不要求驗證,解析器會不會堅持檢索模式,並且將只檢查該文件是「良好形成」的,這意味着它的語法正確的XML。注意,如果沒有對架構驗證,沒有任何類型的信息,該架構定義將可用,只有基本的XML數據模型。

+0

非常感謝你真的真的 – trytop 2014-09-29 14:23:43

+0

所以......根據你的概念,我測試過我的Web應用程序。我修改了我的Web應用程序上下文xml文件。 xsd到xx。並啓動服務器。我想,當服務器啓動時,應該下載xsd – trytop 2014-09-29 14:24:40