Java XML Schema validation: prefix not bound

后端 未结 2 808
心在旅途
心在旅途 2020-12-16 02:16

I have followed this tutorial for validating XML files. But I am receiving exception when validating XML file. What I am doing wrong? My codes:
XML schema:



        
2条回答
  •  感动是毒
    2020-12-16 03:13

    The XML schema file itself needs to be a valid XML document. You are missing the outer schema element and the namespace declaration for the xs prefix.

    
        
    
    

提交回复
热议问题