Element cannot have character [children], because the type's content type is element-only

后端 未结 2 1455
孤独总比滥情好
孤独总比滥情好 2021-01-04 13:17

I tried validating my XML file with a XSD file but I get the following error message:

[Error]: cvc-complex-type.2.3: Element \'paragraph\' cannot ha

2条回答
  •  走了就别回头了
    2021-01-04 13:41

    For me This error happen because of the strange character in the xml When I compared two files with similar data in "BeyondCompare" tool I found unknown character which is not visible. Open faulty file in "Visual Studio Code" it showed me some special characters.

    When I copy pasted the string in online tools to find special characters, I found that is a special character  ().

    Because of this character, I got above error. It took two weeks to find solution.

提交回复
热议问题