[jdom-interest] How about Namespace serialization

HUFFMAN BRADLEY S hip at csa.cs.okstate.edu
Sun May 18 18:52:58 PDT 2003


"Bill Woodward" writes:

> Bill Woodward said:
> >
> > No, should Namespace implement serializable?
> >
> 
> Erm, that should be 'So, should Namespace implement serializable?'

JDOM tries to create only one Namespace object per prefix/URI pair. If
Namespaces were serializable then on every Element/Attribute deserialization
a new Namespace object would be created regardless, which would work but
be a great waste of space.

BTW, you might find using XMLOutputter/SAXBuidler for serialization/
deserialization faster.

Brad



More information about the jdom-interest mailing list