Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] idref resolution

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • To: Jeff Hoare <jhoare AT paradise.net.nz>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] idref resolution
  • Date: Thu, 29 May 2003 15:59:10 -0400

Hi,
I'm using an xmi document as input and would like to know if there is anyway
to resolve idref(s) in the document. The problem is that I'm looking for
specific tags on elements and these tags are referenced via idref's, so in
order to determine whether a particular element has been tagged with a tag
that I'm interested in I first need to resolve the reference and then check
the tag it refers to.
I have done this using a map that maps ids to their elements (and using this
to do a look up), but wonder if there is another way using XOM.


No. XOM will tell you which attributes are IDs and which are IDREFs, but beyond that you're on your own.
--

Elliotte Rusty Harold
elharo AT metalab.unc.edu
Processing XML with Java (Addison-Wesley, 2002)
http://www.cafeconleche.org/books/xmljava
http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA




Archive powered by MHonArc 2.6.24.

Top of Page