|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] importNode returns null
In my Java application, I'm trying replace a node with a node from another document. I have a reference to the node I wish to replace (originalNode), and the new node (newNode). Node importedNode = originalNode.getOwnerDocument().importNode(newNode, true); originalNode.getParentNode().replaceChild(importedNode, originalNode); However, I couldn't get replaceChild to work, and started investigating. I found that importedNode is always null - that is, importNode always returns null. Does anyone see how this can happen? There are no exceptions thrown. -- Vidar S. Ramdal <vramdal@g...> "In the beginning, the universe was created. This made a lot of people very angry, and has been widely regarded as a bad idea." -- Douglas Adams
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








