You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Karl Scheibelhofer <Ka...@iaik.at> on 2001/02/27 08:56:38 UTC

Bug in handling attributes, when importing nodes

the new Xerces 1.3.0 seems to introduce a new bug with handling attributes,
when importing elements from other documents. if i (deep) import an element
with attributes, xerces 1.3.0 messes up the attributes of the newly imported
node. with the version 1.2.1, it worked.
i use sun jdk 1.3.0.
i attached files that show the problem.
ExaminationCertificationData_unsigned_0001.xml is the original document
which i want to insert into a new signed one. if i do this using

    Node importedContent = domDocument_.importNode(originalNode, true);
    // add signedContent node
    destinationParentElement_.appendChild(importedContent);

xerces does not correctly handle the attributes. you can see this in the
resulting document ExaminationCertificationData_0001.xmlsignature.xml. the
attributes of aida:eDocument/aida:signedContent/certificationData are
messed.
however, all this worked with xerces 1.2.1 (unfortunately with the old
schemas).

i hope, you can response quite soon.

  Karl Scheibelhofer

--

Karl Scheibelhofer, <ma...@iaik.at>
Institute for Applied Information Processing and Communications (IAIK)
at Technical University of Graz, Austria, http://www.iaik.at
Phone: (+43) (316) 873-5540