2012-06-08 4 views
4

내 프로젝트에 jvxml-implementation-0-7.xsd라는 파일이 있습니다. 파일문서의 루트 요소가 없습니다 <xsd:schema>

내용

<?xml version="1.0" encoding="UTF-8"?> 
<xsi:schema xmlns:xsi="http://www.w3.org/2001/XMLSchema" 
xmlns="http://www.jvoicexml.org/xsd/jvxml-implementation-0-7.xsd" 
    xmlns:tns="http://www.example.org/jvxml-implementation"  
xmlns:beans="http://www.springframework.org/schema/beans" 
    elementFormDefault="qualified"> 
    <xsi:import namespace="http://www.springframework.org/schema/beans" 
    schemaLocation="spring-beans-2.0.xsd" /> 
    <xsi:element name="implementation"> 
    <xsi:annotation> 
     <xsi:documentation> 
    Implementation platform for JVoiceXML 
    </xsi:documentation> 
</xsi:annotation> 
<xsi:complexType> 
    <xsi:sequence minOccurs="0" maxOccurs="unbounded"> 
    <xsi:element name="repository" type="xsi:string" 
     minOccurs="0" maxOccurs="1"> 
     <xsi:annotation> 
     <xsi:documentation> 
      The name of the loader repository. 
     </xsi:documentation> 
     </xsi:annotation> 
    </xsi:element> 
    <xsi:element name="classpath" type="xsi:string" 
     minOccurs="0" maxOccurs="unbounded"> 
     <xsi:annotation> 
     <xsi:documentation> 
      Entry to be added to the CLASSPATH when 
      loading this implementation platform^M 
     </xsi:documentation> 
     </xsi:annotation> 
    </xsi:element> 
    <xsi:element ref="beans:bean" minOccurs="1" 
     maxOccurs="unbounded"> 
     <xsi:annotation> 
     <xsi:documentation>Spring bean configuration 
     </xsi:documentation> 
     </xsi:annotation> 
    </xsi:element> 
    </xsi:sequence> 
</xsi:complexType> 

하지만이로드 될 때 이러한 오류가 발생한다.

org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'jvxml-implementation-0-7.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. 

나는 권한이 변경된 파일을 넣습니다. 그래서 세 번째 오류가 남았습니다.

처리 방법에 대해 자세히 알려주십시오.

감사합니다.

+0

에 http : // 소스 포지 (SourceForge) .net/projects// jvoicexml/forums/forum/435548/topic/5238971 – duffymo

답변

3

XSI는 스키마 인스턴스 참조이며 스키마가 아닙니다.

2 개 중 1 개가 여기에서 작동합니다.

  1. 변경 <xsi:schema xmlns:xsi="http://www.w3.org/2001/XMLSchema" "XSD"모든 "XSI" <xsd:schema xmlns:xsi="http://www.w3.org/2001/XMLSchema"<xsi:schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

또는

  1. 변경 <xsi:schema xmlns:xsi="http://www.w3.org/2001/XMLSchema" 및 교체
+0

여기에 작은 점을 추가하고 싶습니다. 동일한 문제에 직면했지만 XSD와 XML 모두에 부적절한 filePath를 놓친 것입니다. 위와 같이 할 수있는 바보처럼 굴지 마십시오. –