Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Text.copy

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Wolfgang Hoschek <whoschek AT lbl.gov>
  • To: Wolfgang Hoschek <whoschek AT lbl.gov>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Text.copy
  • Date: Thu, 25 Nov 2004 12:50:55 -0800

Turns out it actually amounts to the same effect. No improvement there. Maybe i'm just overworked...
Wolfgang.

On Nov 25, 2004, at 11:47 AM, Wolfgang Hoschek wrote:

How about avoiding verification on copy in Text? It is unnecessary since the text has already been verified before.
It's straightforward:

public Node copy() {
if (isCDATASection()) {
return new CDATASection(this);
}
else {
return build(data);
// return new Text(this);
}
}






Archive powered by MHonArc 2.6.24.

Top of Page