Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] how to add item to existing node?

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Rusty Harold <elharo AT ibiblio.org>
  • To: XOM API for Processing XML with Java <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] how to add item to existing node?
  • Date: Tue, 21 Dec 2010 07:14:20 -0500

On Mon, Dec 20, 2010 at 3:49 PM, getagrip <getagrip AT web.de> wrote:
> Not using XPath I can use Elements and add/remove children, but how to I
> filter the initial Sequence without XPath?
>
> // I would like to filter by @id here, something like this:
> val roles = doc.getRootElement.getChildElements("role[@id='boss']")
>

Nodes roles = doc.getRootElement().query(""role[@id='boss']"");


--
Elliotte Rusty Harold
elharo AT ibiblio.org




Archive powered by MHonArc 2.6.24.

Top of Page