Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] simple questions

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: luca <passani AT eunet.no>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] simple questions
  • Date: Tue, 13 Apr 2004 14:58:37 +0200


Hallo, I needed to manipulate the OM this time :)

I am using this code to copy an element to be appended somewhere else:

Element new_element = (Element)someElementList.get(k).copy();

I understand that I could use:

Element new_element = new Element(someElementList.get(k));

is there any reason to prefer one over the other performance or semantic-wise?

any pitfalls?

thanks

Luca









Archive powered by MHonArc 2.6.24.

Top of Page