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.

Bug 126040

Summary: formatting instance document doesn't insert line breaks
Product: xml Reporter: Chris Webster <cwebster>
Component: CodeAssignee: Samaresh Panda <samaresh>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 127319    
Bug Blocks: 108011, 117610, 118021, 122501    
Attachments: example xml file which does not result in adequate formatting
formatted test.xml

Description Chris Webster 2008-01-26 01:38:43 UTC
I have been working with XML documents which are "compressed" for RESTful service use by removing human readable
formatting. I want to be able to save these documents into xml files and use NetBeans to format the documents. When
formatting documents, such as the one attached, line breaks are not added and thus the documents are still difficult to
read. I would expect a format such as the format applied using the default Transformer in the JDK package to be applied,
one line per element, indented.
Comment 1 Chris Webster 2008-01-26 01:40:23 UTC
Created attachment 55597 [details]
example xml file which does not result in adequate formatting
Comment 2 Samaresh Panda 2008-02-01 15:09:53 UTC
There are several formatting related issues we should look at while working on this. Listing them here as dependents for
easier tracking, even though some may not be truly dependents.
Comment 3 Samaresh Panda 2008-02-13 16:20:43 UTC
Created attachment 56624 [details]
formatted test.xml
Comment 4 Samaresh Panda 2008-02-13 16:23:34 UTC
Chris, please see the attached formatted xml. I think this is 100 times better than before.
Comment 5 Chris Webster 2008-02-16 18:26:47 UTC
The formatting on this looks much better, definitely reasonable. 
Comment 6 Samaresh Panda 2008-02-20 04:56:32 UTC
Fix integrated: http://hg.netbeans.org/main?cmd=changeset;node=cdad61b5b4a8
Comment 7 tonybeckham 2008-02-27 19:38:55 UTC
Fix Verified

Product Version: NetBeans IDE Dev (Build 200802270005)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Linux version 2.6.22-14-generic running on i386; UTF-8; en_US (nb)