You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2001/08/02 00:50:38 UTC

[Bug 2957] New: - importNode(Node importedNode, boolean deep) does not import attribute values

PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2957

*** shadow/2957	Wed Aug  1 15:50:38 2001
--- shadow/2957.tmp.28054	Wed Aug  1 15:50:38 2001
***************
*** 0 ****
--- 1,29 ----
+ +============================================================================+
+ | importNode(Node importedNode, boolean deep) does not import attribute valu |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 2957                        Product: Xerces2-J               |
+ |       Status: NEW                         Version: 2.0.0 [alpha]           |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Major                    OS/Version: Windows NT/2K           |
+ |     Priority: Other                     Component: DOM                     |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: xerces-j-dev@xml.apache.org                                  |
+ |  Reported By: Adarsh_Dattani@apl.com                                       |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ The method importNode(Node importedNode, boolean deep) does not import the 
+ attribute values even on a deep clone.  I try to import an element from 
+ Document A into Document B under the root.  The following snippet shows the 
+ code I use :
+ 
+ ... assume that docA and docB are two well-formed XML documents.
+ Element rootA = docA.getDocumentElement();
+ Element rootB = docB.getDocumentElement();
+ rootB.appendChild(docB.importNode(rootA,true));                             
+ 
+ The above code works fine except that it does not import the attribute values.
+ Is this is a bug or am I doing something wrong here ?
+ Thanks in advance,
+ Adarsh
\ No newline at end of file

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org