Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] How do I get the names of child elements or nodes

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Fred Vos <fred AT fredvos.org>
  • To: XOM API for Processing XML with Java <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] How do I get the names of child elements or nodes
  • Date: Thu, 3 Sep 2009 21:47:15 +0200

On Wed, Sep 02, 2009 at 05:24:26PM -0400, Putnam, Denis wrote:
> Is there an equivalent method to Element.getValue() to get the names of
> the child elements?

With http://www.xom.nu/apidocs/nu/xom/Element.html#getChildElements()
you can get a list of child elements of an element and with
http://www.xom.nu/apidocs/nu/xom/Element.html#getLocalName() or
getQualifiedName() you can retrieve their names.

Best regards,

Fred




Archive powered by MHonArc 2.6.24.

Top of Page