This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes How clone PSVIDocumentImpl and keep PSVI info? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How clone PSVIDocumentImpl and keep PSVI info?" Watch "How clone PSVIDocumentImpl and keep PSVI info?" New topic
Author

How clone PSVIDocumentImpl and keep PSVI info?

Dan Bizman
Ranch Hand

Joined: Feb 25, 2003
Posts: 387
I've got a Document that is a xerces PSVIDocumentImpl. I want to make a copy, and that class has a method cloneNode(boolean deepCopy). However, when i use that method, I get the XML nodes but I lose all PSVI info. For example, on the original PSVIDocumentImpl, the following returns an object:

XSElementDeclaration decl = ( ( ElementPSVI ) element ).getElementDeclaration();

However, in the cloned node, that statement returns null.

Any idea how to do this?
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: How clone PSVIDocumentImpl and keep PSVI info?