This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 100631 [details] Suggested impl assuming plain old DOM Assume an XDMModel on which has been called setPretty(true) and setIndentation(" "). If you start with <root/> and use insertBefore to add a child, it is correctly rendered as <root> <child/> </root> But if you now call removeChildNodes to delete that child, you get <root> <!--(end of line)--> </root> rather than <root/> again as expected. These should be inverse operations.
Nikita, please take a look.
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.