You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by tom john <cy...@yahoo.com> on 2002/04/24 12:35:53 UTC
Converting Node to Element Problem
Hi,
I get a node which i should convert to serialize:
eg.
xmlSerializer.serialize(element);
since xmlSerializer.serialize method accepts either
Document or Element i must convert node which i get to
serialize either to Document or Element.
i tried Element element = (Element)node;
it works sometimes but sometimes gives ClassCastError.
i dont know how.
Any idea?
tom
__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org