Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Offsets in xml text file

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Michael Ludwig <milu71 AT gmx.de>
  • To: XOM API for Processing XML with Java <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] Offsets in xml text file
  • Date: Thu, 3 Dec 2009 18:26:26 +0100

Dick Deneer schrieb am 03.12.2009 um 17:14:38 (+0100):
> Can I use xom to get the offsets (startTag to endTag) of a node
> in the resulset of an xpath expression. I would like to show the
> result to the user in the original xml text file.

If you have your XML in XOM and want to *show* particular nodes to
the user, then some graphical representation of the XOM object seems
required. And that should be updated from the underlying object,
like in an editor. But I don't know how this is done in practice.

Maybe nu.xom.Node#hashCode() will serve you.

--
Michael Ludwig




Archive powered by MHonArc 2.6.24.

Top of Page