My input Xml though tab formated after i run it through my code ..
using dom and filnally saves the file using the javax.xml.transform.*
the output XML file is onle line long file! My major problem is i'm not being able to "check in " into clearcase ..otherwise i wont be so bothered about the problem .Apart from me explicitly running it through a SAX parser and formatting it with \t and \n is there a neater/SIMPLER way?
TransformerFactory xformFactory = TransformerFactory.newInstance();
Transformer transformer = xformFactory.newTransformer();
FileOutputStream file = new FileOutputStream(fileName);
transformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM,dtd.getDtdFilePath());
transformer.transform(new DOMSource(xmlDcument),new StreamResult(file));