Community
Participate
Working Groups
Created attachment 219368 [details] XML file generated by Eclipse XML Editor with missing a new line character I use Eclipse XML Editor for editing XML files. However, I find XML file created by this tool misses a new line character before the last end tag. For example: <a> <b></b> <c></c></a> What I expect is: <a> <b></b> <c></c> </a> Could fix this problem?
How was this "generated"?
Created attachment 219382 [details] How to reproduce this problem
(In reply to comment #1) > How was this "generated"? Sorry, Eclipse XML Editor also generates this line: <?xml version="1.0" encoding="UTF-8"?> I recorded a video to show the steps to produce this problem. The video, "How to reproduce this problem (EclipseXmlEditor.avi)," encoded in XviD has been attached in this discussion thread.
I think something went wrong with attachment 219382 [details]. Perhaps you could write out the directions?
(In reply to comment #4) > I think something went wrong with attachment 219382 [details]. Perhaps you > could write out the directions? I don't know why the video was deleted. Sorry, please try to download EclipseXmlEditor.avi again here: https://skydrive.live.com/#cid=87CEF5E6683B5427&id=87CEF5E6683B5427%21492
You need to perform a manually format: *Right click on the file, Sorce -> Format, or *Switch to the Source pane and perform ctrl+shift+F
(In reply to comment #6) > You need to perform a manually format: > > *Right click on the file, Sorce -> Format, or > *Switch to the Source pane and perform ctrl+shift+F Thanks, Salvador Zalapa. However, I think it would be more convenient if Eclipse XML Editor could automatically generate well-formatted XML files. Is it possible?
Seems like this could be a new feature to keep code formatted when editing through the design pane.