XML validation fails with error “Top level is not completed”

后端 未结 1 1467
说谎
说谎 2021-01-25 05:47

I\'ve got what seems like a very simple example of an xsd and xml file where the xml file does not validate.

Copies of the two files are below.

The first xml ele

相关标签:
1条回答
  • 2021-01-25 06:19

    An XML document cannot be valid until it is well-formed.

    So you should specify a root tag in XML document, e.g.:

    <root>
        <question id="fixMe" />
        <question idx="ok"/>
        <question />
    </root>
    
    0 讨论(0)
提交回复
热议问题