You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: Adding comments at lowest hierarchy level #460
I think I found a bug in XML-Notepad when trying to add a comment at the lowest hierarch level in a nested XML-Structure.
I get the following Error-Message from a Validator: ERROR_XML_CONFIG:: Error Message: no character data is allowed by content model.
See the following examples:
Allowed:
<catalog>
<book id = "Book_1" author ="Writer_A" title = "title_A" ></book>
</catalog>
Also Allowed:
<catalog>
<book id = "Book_1" author ="Writer_A" title = "title_A" ><!-- Just a comment like it is allowed to do --></book>
</catalog>
Not Allowed (and already fixed I think):
<catalog>
<book id = "Book_1" author ="Writer_A" title = "title_A" > </book>
</catalog>
Also Not Allowed:
<catalog>
<book id = "Book_1" author ="Writer_A" title = "title_A" > <!-- Just a comment like it is allowed to do --> </book>
</catalog>
...
<xs:element name = book>
<xs:complexType>
<xs:attribute type = "xs:string" name = "id">
<xs:attribute type = "xs:string" name = "author">
<xs:attribute type = "xs:string" name = "title">
</xs:complexType>
</xs:element>
...
Activity
Fix issue #463: Don't add a missing XML declaration on save.