xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
- To: Kevin Herrboldt <kevin AT puppethead.com>, xom-interest AT lists.ibiblio.org
- Cc:
- Subject: Re: [XOM-interest] DocType.equals()?
- Date: Thu, 3 Jul 2003 22:21:50 -0400
At 4:15 PM -0500 7/3/03, Kevin Herrboldt wrote:
I'm wondering if nu.xom.DocType should have an equals() method that checks the Public ID and/or the System ID.
No. The semantics for equals() in all XOM node classes is strict equality, and various other parts of the API depend on this. However, check out nu.xom.tests.XOMTestCase and you may find a method that does what you need. Be warned, I'm still experimenting with the exact API and behavior for that class.
--
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
-
[XOM-interest] DocType.equals()?,
Kevin Herrboldt, 07/03/2003
- Re: [XOM-interest] DocType.equals()?, Elliotte Rusty Harold, 07/03/2003
Archive powered by MHonArc 2.6.24.