Mr. x said:
Hello,
Is there any protocol or program, that can save all the java applet into a
file (xml), and can load the java applet from file (xml) ?
How can I load XML into Java, and vice versa ?
Thanks
To put it quite frankly, I don't understand why people are trying to do
everything XML? What is the purpose of converting a class file to XML? Its
only making things slower. I guess you can convert the class file to
base64 and just put it in a node. I think its a little silly, but I guess.
I think doing the base64 will make the file about 33% larger and putting it
in XML will make it 10%-100% larger. I hope you weren't trying to compress
it.
Probably another way to do it would be to extract each "line" and interpret
the bytecodes to something in your XML file and then map it back. So
something like: 0x32 0x53 0xa3 ... would become....
<node id="23">push ax</node>
<node id="24">pop ax</node>
.....
This would make the file about 5000% larger. (Almost at the M$ level of
bloat)