This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
How could I output the xml to : <?xml version="1.0" encoding="UTF-8"?><view><help><block>No.1</block><device>USB</device></help></view>
The reason to output like this is to make the xml comparison passed. I use org.custommonkey.xmlunit.XMLTestCase.compareXML to compare two xml string, one from Java code, the other from C# code. Now, since there are new line and whitespaces embedded in the Java generated XML, the comparison always failed. Is there any way to output the indent xml to the one string only? [ May 03, 2008: Message edited by: Angelo Huang ]
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus