Getting text content of an element
I have to work with a config.xml and therefore i have to have access to what the nodes contain.
My issue is that i am forced to work with JDK 1.4.2 and therefore with JAXP 1.0.
My question is: Is there a way of getting the text content ?
and i mean
<xmlElement>
myText
</xmlElement>
what do i use in order to get a String containing "myText" ?
Please help !
[424 byte] By [
asrfela] at [2007-10-3 2:54:39]

You might want to look at JDom at some point. It has methods to get the text content of an element directly.
http://www.jdom.org/
It also has other things to make processing a Document more like real content in Java. As an example, the NodeList returned by regular DOM is not a Java List. The JDom mthods return a real List. There are also methods in JDom to get normalized string results (such as getTextNormalize. ("Returns the textual content of this element with all surrounding whitespace removed and internal whitespace normalized to a single space. If no textual value exists for the element, or if only whitespace exists, the empty string is returned.")
Dave Patterson