Skip to Content.
Sympa Menu

xom-interest - [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: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] Text.copy
  • Date: Thu, 25 Nov 2004 11:47:35 -0800

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