microsoft / XmlNotepad

XML Notepad provides a simple intuitive User Interface for browsing and editing XML documents.
https://microsoft.github.io/XmlNotepad/
MIT License
968 stars 207 forks source link

Editing the name of a new root node that you added attributes loses the attributes #343

Closed lovettchris closed 8 months ago

lovettchris commented 10 months ago

Start with:

<?xml version="1.0" encoding="utf-8"?>
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.microsoft.com/vs/2009/dgml file:///F:/OneDriveWork/OneDrive%20-%20Microsoft/Progression/SDK_1/DGML.xsd" xmlns="http://schemas.microsoft.com/vs/2009/dgml" />

Load it and rename "root" to "DirectedGraph" and you get this error:

image

Save the file and the new file has no attributes...

lovettchris commented 10 months ago

Will be fixed in version 2.9.0.7

lovettchris commented 8 months ago

Fixed