I'm just learning Xerces, so take my answer with a grain of salt. I believe the importNode method takes a Node & a boolean object--so unless you have deep defined as a boolean somewhere else, you may want to change your 3rd line of code to something like this:
node = ((Document) m_node).importNode(node,true); Just a side note, I don't understand why you need to cast m_node to a Document object. I think you should just be able to do: node = m_node.importNode(node, true); -----Original Message----- From: Jason Rizer [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 23, 2001 3:27 PM To: [EMAIL PROTECTED] Subject: What's wrong with this (small) snippet of code? Hello. Xerces is throwing a java.lang.NoSuchMethodError exception at me and I can't figure out why. The offending snippet of code is as follows: ElementImpl node = new ElementImpl( ); DocumentImpl m_node = new DocumentImpl( ); node = ((Document) m_node).importNode( node, deep ); The third line throws the exception, but I just can't figure out what the problem is. I'm using xerces 1.2.1. Anyone know what my problem is? -Jason __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
