On Fri, 2003-04-25 at 09:48, Sanjay Gupta (sanjaygu) wrote: > I was wondering why DOMSerializer.serialize takes only Document and NOT > a node? > Any thoughts? What if I have a node to serialize?
There is a serialize(Element e) method. Provided your node is an element, just cast it to the correct type. Clearly, serializing an attribute node on its own (or text node, or ..) is not supported, but there really shouldn't be much demand for this!
