Question about XSD 1.1 support

Answered

1. I am trying to use the schema based on XSD 1.1 to create a XML file in Intellij. But the xs:alternatives tag is not recognized properly by the IDE.

I have enabled the XSD 1.1 in the File -> Settings menu.

 

How can I make this work?

 

2. Also, In the content assitance for tag, the tag is not closed properly. 

Example:

As per the schema, tag1 - having attribute attr1 and attr2

When I typed < and choose tag1, I am seeing the following in the editor

<tag1 attr1="" attr2="" 

But what I expect to see is (with the closing tags)

<tag1 attr1="" attr2="" />

1 comment
Comment actions Permalink

1. We have a bug report for this, please follow https://youtrack.jetbrains.com/issue/IDEA-140239.

2. Could you provide schema for the document?

0

Please sign in to leave a comment.