Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How clone PSVIDocumentImpl and keep PSVI info?  RSS feed

Dan Bizman
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!