Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » How to: Convert a org.apache.xerces.dom Node to org.eclipse.wst.html.core.internal.document Node
How to: Convert a org.apache.xerces.dom Node to org.eclipse.wst.html.core.internal.document Node [message #202316] Tue, 16 October 2007 05:40 Go to previous message
Eclipse User
Originally posted by: ranjeev.backbase.com

Hello Guys,

I am having a node that is type
(org.eclipse.wst.html.core.internal.document.ElementStyleImp l), I wish
to import this into org.eclipse.wst.html.core.internal.document, using
the code below:

Node importedNode = domModel.getDocument().importNode(newNode, true);
//domModel is of type
org.eclipse.wst.xml.core.internal.provisional.document.IDOMM odel

// and newNode is of type org.apache.xerces.dom.ElementStyleImpl, which
// giving me class cast exception!

Is there a way to convert a a org.apache.xerces.dom Node to
org.eclipse.wst.html.core.internal.document Node???

Thanks
Ranjeev
 
Read Message
Read Message
Read Message
Previous Topic:Design view of WSDL doesn't link to soap fault type
Next Topic:Preserving text editor caret position
Goto Forum:
  


Current Time: Thu May 23 14:18:43 EDT 2013

Powered by FUDForum. Page generated in 0.01727 seconds