A comment in DTD crashes editor

SyntaxEditor for WPF Forum

Posted 5 years ago by Simon Sprott
Version: 14.2.0610
Platform: .NET 4.5
Environment: Windows 8 (64-bit)
Avatar

I've managed to get a pretty simple sample that breaks it.

If you cut and paste this code into the XML Editor (Web Lang Addon) sample in your sample pack it cashes.

Its the comment within the DTD thats causing the problems.

<?xml version="1.0"?>
<!-- My Test Branding Line -->
<!DOCTYPE note[
<!ELEMENT note (to,from,heading,body)>
<!ELEMENT to (#PCDATA)>
<!ELEMENT from (#PCDATA)>
<!-- dfsdf -->
<!ELEMENT heading (#PCDATA)>
<!ELEMENT body (#PCDATA)>
]>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend</body>
</note>

Comments (1)

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

Hi Simon,

Thanks for letting us know about this. It appears that our Declaration AST node class had its child Nodes collection defined as a collection of type Declaration instead of IAstNode.  We've fixed it for the next maintenance release.


Actipro Software Support

The latest build of this product (v2019.1 build 0683) 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.