Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] Getting an element value, excluding its children

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: cowwoc <cowwoc AT bbs.darktech.org>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] Getting an element value, excluding its children
  • Date: Thu, 07 Aug 2008 21:56:50 -0400

Hi,

Given:

<version>1.0.2.3
<message>this is a test</message>
</version>

How does one get "1.0.2.3" back from XOM? I tried Element.getValue() but it includes the value of the children nodes (i.e. "this is a test"). Any ideas?

Thank you,
Gili




Archive powered by MHonArc 2.6.24.

Top of Page