On Friday, 11/09/2001 at 12:12 CET, longinus <[EMAIL PROTECTED]> wrote: > I want to change the value of the first child in the document. > I do it this way but it doesn't work. > > Node n=doc.getFirstChild(); > Element el=(Element)n;
The first child of your document may not be the element. Try
Node n=doc.getRootElement()
Note that this is a basic DOM question; it doesn't really belong on the
Xalan list, and suggests that you might want to get your hands on a good
DOM tutorial and study that.
