toString on element?

Having used the DOM spec for a couple of projects
now, I've found it would be useful to have a toString
method on Element (similar to that on Attribute).

I understand that it could be a _really_ bad idea
to call toString on a large node in the document
but many XML applications will be using small XML
files as input to other processes, and having to
write your own toString routine could put some
people off. A bool parameter could specify whether
nested elements cause an error or whether they
are processed recursively.

Alfie.

Received on Tuesday, 17 March 1998 07:00:36 UTC