Can someone help me modify my program below so it will serialize a map to standard output? Sun had documented a bug several years ago concerning the serialization of maps and I am hoping it has been fixed by now.
I ran that code (with the XML from the comments before it) and it produced this:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><demoMaps><datum name="xyz_modified"><value>Insert your sample data here_modified</value></datum><datum name="abc"><value>def</value></datum><map/></demoMaps>
Looks okay to me, except for that empty <map> element at the end. Was that what you were referring to? Is it a problem?
Edit: looking at your code it looks like you were expecting the contents of the map to be serialized as well. At least that's what I would expect. So if that's the bug (you didn't say what this bug was) then it's still there.