Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

importNode() does not import attribute values

843834Jan 22 2002 — edited Jan 28 2002
I want to import one part of xml document into another xml document. I use the Document.importNode() method to do this. Here's my code snippet:

Document newdoc = db.newDocument();
Node importedNode = newdoc.importNode(xmlnode,true);

But as the result the xml part is copied into importedNode, but attribute values are empty. What do I do wrong? I'm really lost, so thanks for ANY help.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 25 2002
Added on Jan 22 2002
5 comments
201 views