Xerces implementation of a Node is a Serializable Implementation

Luigi Viggiano

In Xerces there's a class called org.apache.xml.serialize.XMLSerializer that is an implementation of different XML handlers (ContentHandler, DeclHandler, DocumentHandler, DTDHandler, LexicalHandler) to be used with SAX. If you want you can use it also alone, whitout SAX.

With this you don't serialize the DOM Object but you transform everything to an XML String (easier to serialize, and obviously faster to transmit). The disadvance is that, from the other side you get a String to be parsed to a Node. Anyway you can try to check performance improvements/loss. (I think should be an improvement.)

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact