Invalid IntelliPrompt completion options shown in XML syntax editor

SyntaxEditor Web Languages Add-on for WPF Forum

Posted 11 years ago by Tim Scott
Version: 13.1.0580
Avatar

Hi,

We have noticed invalid IntelliPrompt completion options shown in XML syntax editor.

To reproduce.

1) create an xml schema xsd file with the following content:

<xs:schema id="PromptIssue"
targetNamespace="PromptIssue"
elementFormDefault="qualified"
xmlns="PromptIssue"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="PromptIssue">
     <xs:complexType>
       <xs:sequence>
         <!-- hair -->
         <xs:element name="hair" minOccurs="0" maxOccurs="1" />
         <!-- diet -->
        <xs:element name="diet" minOccurs="0" maxOccurs="1"/>
     </xs:sequence>
   </xs:complexType>
  </xs:element>
</xs:schema>

2) Open the xml schema xsd via the actipro xml editor samples.

3) enter the following xml into the editor:

<PromptIssue xmlns="PromptIssue">

<diet/>
<!-- IntelliPrompt continues to suggests hair and diet after this point even though it is invalid--> 

</PromptIssue>

4)  in the xml editor, use IntelliPrompt to suggest a valid element after the <diet /> element and it will continue to prompt "diet" and "hair" as valid options even though they are not.

 

-- Expected Result

Only valid element options (as specified by the xml schema)  be show by IntelliPrompt (VisualStudio 2012 behaves as expected).

-- Actual Result

Syntaticaly invalid options (as specified by the xml schema) are displayed by IntelliPrompt

 

Is there a setting that I am missing to make this work as expected?

 

Thanks,

Tim

[Modified 11 years ago]

Comments (1)

Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Tim,

Thanks for the sample.  At the current time, the add-on doesn't have the logic necessary to handle complex sequence-based elements.  So it currently falls back to showing the various options available for that complex type.  We've logged this request on the TODO list to have better sequence support.


Actipro Software Support

The latest build of this product (v24.1.1) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.