Return-Path: Mailing-List: contact axis-user-help@xml.apache.org; run by ezmlm Delivered-To: mailing list axis-user@xml.apache.org Received: (qmail 40772 invoked from network); 10 Apr 2002 14:37:07 -0000 Received: from dellboy.tele2.co.uk (HELO mail.tele2.co.uk) (212.19.64.20) by daedalus.apache.org with SMTP; 10 Apr 2002 14:37:07 -0000 Received: from proxy.upco.co.uk (wireless-081-218.tele2.co.uk [212.19.81.218]) by mail.tele2.co.uk (Postfix) with ESMTP id B0BF340107 for ; Wed, 10 Apr 2002 15:34:34 +0100 (BST) Received: from upco-pdc.upco.co.uk (upco-pdc.internal.upco.co.uk [160.100.0.1]) by proxy.upco.co.uk (8.11.6/8.11.6) with ESMTP id g3AFEEF19903 for ; Wed, 10 Apr 2002 16:14:14 +0100 Received: by upco-pdc.internal.upco.co.uk with Internet Mail Service (5.5.2653.19) id ; Wed, 10 Apr 2002 15:40:33 +0100 Message-ID: <2F874709109CD311B44B00C00D00EA5922F87A@upco-pdc.internal.upco.co.uk> From: "Adam.Leggett" To: "'axis-user@xml.apache.org'" Subject: RE: MessageElement Date: Wed, 10 Apr 2002 15:40:32 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Oren, What version of Axis are you using? MessageElement does not seem to have a getFirstChild() method in Axis Beta1 To clarify, I need to get the text node from my instance of MessageElement. I don't want to load it into a DOM and incur a performance hit. Cheers Adam -----Original Message----- From: Oren Bar-El [mailto:Oren.Bar-el@smarteam.com] Sent: Wednesday, April 10, 2002 2:54 PM To: axis-user@xml.apache.org Subject: RE: MessageElement You need to use msid.getFirstChild().getNodeValue() to get the value of the TextNode. -----Original Message----- From: Adam.Leggett [mailto:Adam.Leggett@upco.co.uk] Sent: Wednesday, April 10, 2002 4:50 PM To: Axis User (axis-user@xml.apache.org) Subject: MessageElement I need to get the text node from a MessageElement The xml element is: 111111 getValue() returns null i.e. /** * Text nodes are not supported. */ public String getValue() { return null; } I cetainly would like to avoid using getAsDOM() etc Is my only option to use toString() ? Adam Leggett UPCO Direct Line: 0113 20 10 631 Fax: 0113 20 10 666 The contents of this email are intended for the named addressees and may contain confidential and / or privileged material. If received in error, please contact UPCO on +44 (0)113 20 10 600 and then delete the entire email from your system. Unauthorised review, distribution, disclosure or other use of this information could constitute a breach of confidence. Your co-operation in this matter is greatly appreciated.