这是XML文件 
<?xml version="1.0" encoding="UTF-8"?> 
<test xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.hp.com/sss element.xsd"> 
这里是一个演示 
</test> 这是XSD文件 
<?xml version="1.0" encoding="UTF-8"?> 
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.hp.com/sss" elementFormDefault="qualified"> 
<xs:element name="test" type="xs:string"/> 
</xs:schema> 报错:The element declaration was not found for root element <test>. 我把 targetNamespace去掉 XML中用xsi:noNamespaceSchemaLocation="element.xsd" 就没错 
望高人指点 怎么用xsi:schemaLocation我的两个文件在一个文件夹内