I want to convert XML into binary data in Java? What is the fastest and easiest way to do this?
Is there any internal Java method that I can use?
I want to convert XML into binary data in Java? What is the fastest and easiest way to do this?
Is there any internal Java method that I can use?
If you want to just compress the xml then you can read it and use either GZIPOutputStream or ZipOutputstream as described here.