Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] XOM searching

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Haig Ehramdjian <haige AT cae.com>
  • To: "'xom-interest AT lists.ibiblio.org'" <xom-interest AT lists.ibiblio.org>
  • Subject: [XOM-interest] XOM searching
  • Date: Tue, 3 Dec 2002 12:47:24 -0500

Hello,
I have recently downloaded XOM and it is incredible.
I can manipulate XML with no problems and the documentation is also
wonderful.

My question is if it is possible to search for a specific Element.
Imagine that I have the following 5 Elements in the XOM:
<target name:"elem2"/>
<target name:"elem4"/>
<target name:"elem3"/>
<target name:"elem1"/>
<target name:"elem5"/>

For some reason, I need to delete elem3, but, as you can see, it's not the
3rd element, meaning that root.removeChild(3) would not work.
Do you currently have something like getElementbyName? This would be similar
to what JDOM has. It would return all the <target> tags as an Enum which I
could then go through to process the Attribute "name". If not, is this
coming soon?

Thanks,
haige







Archive powered by MHonArc 2.6.24.

Top of Page