XML Schema substitutionGroup isn't validated correctly by IDEA
Here's a simple XML schema:
Here's a simple corresponding XML file
]]>
However, the "test" element shows up in red and the error is "Element test is not allowed here". However, it is allowed there by the substitutionGroup. Is there something wrong with my XML schema, or is this a bug in IDEA?
请先登录再写评论。
Try run 'Validate' command which uses Xerces validation, if the problem
will not be reported then please file JIRA issue
Jason Rasmussen wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
I have found the answer to my question. The element object must be abstract for it to work.