getTextContent() is DOM level 3 API and AFAIK available in JDK 1.4 upwards with the integrated xerces code base. You may be using an older JDK, have a different (older) xml library in the class path somewhere.
There is no XML library included in the Axis2 kernel so the issue seems to be with a different library. Aj On Fri, Mar 25, 2011 at 7:30 PM, Andrei Istomin <[email protected]> wrote: > Dear All, > > > > I am new to WS and having a problem with integrating a small axis2-1.5.4 > client into an existing, working webapp. > > > > When I add axis2-kernel-1.5.4.jar to my buildpath in Eclipse I get a compile > error in my other classes: > > > > “The method getTextContent() is undefined for the type Node” > > > > Please advice how to fix this, I spent two days searching for solution to no > avail. > > > > Many thanks, > > Andrei > > > > > > Below is the code snippet: > > ================================================= > > import org.w3c.dom.Node; > > import org.w3c.dom.NodeList; > > ... > > ... > > Node codeNode = attributes.getNamedItem("code"); > > if (codeNode != null) { > > String codeStr = codeNode.getTextContent(); <-- error > > ... > > } > > ================================================= > > > > ________________________________ > Scanned by bidz email content filters > > ________________________________ -- Ajith Ranabahu Reading, after a certain age, diverts the mind too much from its creative pursuits. Any man who reads too much and uses his own brain too little falls into lazy habits of thinking - Albert Einstein --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
