Error: S4s-elt-character: Non-whitespace Characters Are Not Allowed In Schema Elements Other Than 'xs:appinfo' And 'xs:documentation'

后端 未结 3 883
南笙
南笙 2020-12-21 14:18

I have this xml-Schema:

         


        
3条回答
  •  滥情空心
    2020-12-21 14:50

    The real reason you're getting this error,

    S4s-elt-character: Non-whitespace Characters Are Not Allowed In Schema Elements Other Than 'xs:appinfo' And 'xs:documentation

    is that you're attempting to validate your XML file as an XSD file.

    So, fix the way you're invoking your validating parser so that you're validating your XML file against your XSD. See How to link XML to XSD using schemaLocation or noNamespaceSchemaLocation?

    Additionally, there are a slew of other problems with your XSD itself. See collapsar's answer for help there.

提交回复
热议问题