Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] Element.getValue()

xom-interest AT

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Dick H <dick AT>
  • To: xom-interest AT
  • Subject: [XOM-interest] Element.getValue()
  • Date: Thu, 22 May 2003 14:35:39 -0500

Here is an example Element:

<cmt flags="0">This is a rung comment. It is optionally included as
part of a rung</cmt>
<!-- rung proper, the Text part: -->
XIC I:0/0 OTE O:12

When getValue() is called on Element <rung>, it returns the text of the nested <cmt> preceding the text of the <rung>. XOM needs a method to return only <rung>'s text:

"XIC I:0/0 OTE O:12"

Please don't suggest that I change the grammar of my XML to stoop to XOM's capabilities. That would be _dangerous_ :) to me.

Is there a capability in XOM that I don't see?

Archive powered by MHonArc 2.6.24.

Top of Page