We parse an xml, convert it to a document perform some operations on the same and later convert them to bytes. In doing so we find some undesired differences in the input and output xml.
For E.g. Input xml <?xml version="1.0" encoding="UTF-8" ?> <Trial><Font fcolor="White" ff="Arial"></Font> </Trial> We parse using DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); db.parse(...) This document we directly convert back to bytes using TransformerFactory. But output comes like this:- Output xml <?xml version="1.0" encoding="UTF-8" ?> <Trial><Font fcolor="White" ff="Arial"/></Trial> Though the output xml is right in xml terms it is not okay for our application as the tool which reads this output xml requires </Font> tag mentioned explicitly . Is there any parameter, property setting that will enable us to get the </Font> tag. Our application is coded in Java. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
