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 80777 - one line test output file is not easy to read. Needs to be reformatted.
Summary: one line test output file is not easy to read. Needs to be reformatted.
Status: NEW
Alias: None
Product: xml
Classification: Unclassified
Component: Text-Edit (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@xml
Depends on:
Blocks: 80514 81465 81467
  Show dependency tree
Reported: 2006-07-21 05:12 UTC by _ hong_lin
Modified: 2007-09-25 01:33 UTC (History)
2 users (show)

See Also:
Exception Reporter:

One line output file (384 bytes, text/xml)
2006-07-21 05:14 UTC, _ hong_lin

Note You need to log in before you can comment on or make changes to this bug.
Description _ hong_lin 2006-07-21 05:12:11 UTC
Build: NB 5.5 Beta2 (Build 200607190830, Ent.Pack 2006.07.19)

Steps to reproduce it:

Run SynchronousSample TestCase0 will get a one line Actual*.xml output file 
like this:

<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-

The one line xml output file is really hard to read.
Comment 1 _ hong_lin 2006-07-21 05:14:17 UTC
Created attachment 32076 [details]
One line output file
Comment 2 Michael Frisino 2006-07-21 11:06:20 UTC
Is this a change from TPR3 or has it always been like this?
Comment 3 _ hong_lin 2006-07-22 00:27:25 UTC
It is always like this. But this is not right. Has to be fixed.
Comment 4 wchui 2006-07-29 03:25:59 UTC
Fixed. format xml output file
Comment 5 Michael Frisino 2006-07-30 17:56:40 UTC
Hi  wchui can you decribe the "fix". What should user expect now for output format?
Comment 6 wchui 2006-07-31 19:12:04 UTC
After the fix, output xml in file is not in all in one line. Each level is 
formmated with indentation to 2 spaces.
Comment 7 Todd Fast 2006-08-01 01:23:18 UTC
The fix of using 2 spaces for indentation is not acceptable for FCS because it
violates the user's indentation options, though this fix is fine for beta. The
indentation needs to use the XML pretty printing facility in the XML project.

I'm reopening this bug but setting priority to P3 for fix by FCS. Please contact
Chris Webster and Ayub Khan for information on using the XML pretty printing
Comment 8 wchui 2006-09-22 21:32:21 UTC
using xml project pretty print feature is checked in. Remaining item is using
user  indentation option.
Comment 9 wchui 2006-09-26 20:45:05 UTC
There is no public API to retrieve indentation option. Another possible way to
get setting value need to have implementation dependencies with
Move to enchancement and then request public API to retrieve user option reliably.
Comment 10 Jiri Prox 2007-09-17 20:20:17 UTC
Obsolete milestone, please reevaluate
Comment 11 Jun Qian 2007-09-18 00:55:26 UTC
Need public/friend API to access XML indentation option.