Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #11411
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Jeff Higgins <jeff@invalid.invalid> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: what is the bettter/performant way to compare org.w3c.dom.DocumentFragment |
| Date | Tue, 17 Jan 2012 12:32:29 -0500 |
| Organization | A noiseless patient Spider |
| Lines | 13 |
| Message-ID | <jf4asm$g9h$1@dont-email.me> (permalink) |
| References | <16090858.1983.1326812606093.JavaMail.geo-discussion-forums@prig11> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Tue, 17 Jan 2012 17:24:38 +0000 (UTC) |
| Injection-Info | mx04.eternal-september.org; posting-host="qwFw1g9RsQ6TkML5yezG9A"; logging-data="16689"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18NaFoCX8mo5G5XdrP96HomIfF3SAavS70=" |
| User-Agent | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20111110 Icedove/3.0.11 |
| In-Reply-To | <16090858.1983.1326812606093.JavaMail.geo-discussion-forums@prig11> |
| Cancel-Lock | sha1:h86QHIlVz/JSW2XkXFhmgRUX+yc= |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:11411 |
Show key headers only | View raw
On 01/17/2012 10:03 AM, Mausam wrote: > I have a java class, whose contains a DocumentFragment. > > In the equals method of my class, I am converting the DocumentFragment to a String and comparing an equals on the String. > > I know this is not the best way, because "attributes" e.g can change order in Element of DocumentFragment, or e.g documents differ only in the sequence of unordered elements. > > So in such cases this equality will fail. > > Please suggest a better approach. A my class is equal to another my class if and only if ...
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
what is the bettter/performant way to compare org.w3c.dom.DocumentFragment Mausam <mausamhere@gmail.com> - 2012-01-17 07:03 -0800
Re: what is the bettter/performant way to compare org.w3c.dom.DocumentFragment Jeff Higgins <jeff@invalid.invalid> - 2012-01-17 12:32 -0500
Re: what is the bettter/performant way to compare org.w3c.dom.DocumentFragment Mausam <mausamhere@gmail.com> - 2012-01-17 17:56 -0800
Re: what is the bettter/performant way to compare org.w3c.dom.DocumentFragment Jeff Higgins <jeff@invalid.invalid> - 2012-01-17 21:33 -0500
Re: what is the bettter/performant way to compare org.w3c.dom.DocumentFragment Arne Vajhøj <arne@vajhoej.dk> - 2012-01-17 21:56 -0500
Re: what is the bettter/performant way to compare org.w3c.dom.DocumentFragment Arne Vajhøj <arne@vajhoej.dk> - 2012-01-17 18:38 -0500
Re: what is the bettter/performant way to compare org.w3c.dom.DocumentFragment Arne Vajhøj <arne@vajhoej.dk> - 2012-01-17 21:55 -0500
Re: what is the bettter/performant way to compare org.w3c.dom.DocumentFragment Mausam <mausamhere@gmail.com> - 2012-01-17 21:29 -0800
csiph-web