xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
Re: [XOM-interest] how to add item to existing node?
- 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
-
[XOM-interest] how to add item to existing node?,
getagrip, 12/20/2010
-
Re: [XOM-interest] how to add item to existing node?,
getagrip, 12/20/2010
- Re: [XOM-interest] how to add item to existing node?, Elliotte Rusty Harold, 12/21/2010
- Re: [XOM-interest] how to add item to existing node?, Elliotte Rusty Harold, 12/21/2010
-
Re: [XOM-interest] how to add item to existing node?,
getagrip, 12/20/2010
Archive powered by MHonArc 2.6.24.