posted 21 years ago
I've to create XML files for back-end processing and most of the content is added in it at run-time.If SAX/DOM is used, then this XML file has to be created manually. Also, to retrieve a particular value, whole document need to be parsed. If I use XMLEncoders and Decoders, then this file saving and retrieval is handled automatically. But the problem is that these Encoders and Decoders show a very random behaviour. They save few properties and few not(apart from default). Also at times, they show a exception "discarding statement XMLEncoder.writeObject(e);"
Is there any way out to solve this problem.