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.
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- ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"><SOAP-ENV:Header/><SOAP- ENV:Body><typeA xmlns="http://xml.netbeans.org/schema/SynchronousSample"><paramA>Hello World</paramA></typeA></SOAP-ENV:Body></SOAP-ENV:Envelope> The one line xml output file is really hard to read.
Created attachment 32076 [details] One line output file
Is this a change from TPR3 or has it always been like this?
It is always like this. But this is not right. Has to be fixed.
Fixed. format xml output file
Hi wchui can you decribe the "fix". What should user expect now for output format?
After the fix, output xml in file is not in all in one line. Each level is formmated with indentation to 2 spaces.
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 feature.
using xml project pretty print feature is checked in. Remaining item is using user indentation option.
There is no public API to retrieve indentation option. Another possible way to get setting value need to have implementation dependencies with org.netbeans.modules.xml.text. Move to enchancement and then request public API to retrieve user option reliably.
Obsolete milestone, please reevaluate
Need public/friend API to access XML indentation option.