Hi,
I am trying to add new node to a PSVI generated document but the problem is that the node I am adding doesn't
have any schema information attached.
I'd tried to set the document 'psvi' and 'validate' fetures and then normalized document by calling method
normalizeDocument but despite this the new node still doesn't contain any schema information.
This si the piece of my code :
Node node = (Node) tree.getSelectionPath().getLastPathComponent();
Node newNode = node.getOwnerDocument().createElement("NEW_NODE");
newNode.appendChild( node.getOwnerDocument().createTextNode("NODE_TEXT"));
node.getParentNode().appendChild(newNode);
node.getOwnerDocuemnt.getDomConfig().setParameter( "validate", Boolean.TRUE );
node.getOwnerDocuemnt.getDomConfig().setParameter( "psvi", Boolean.TRUE );
node.getOwnerDocument().normalizeDocument();
//!!!! node is without any schema schema information
node = node.getParentNode().getLastChild();
Thank you very much for any ideas.
Jakub
---------------------------------------------------------------------
To unsubscribe, e-mail:
xerces-j-user-unsubscribe@xml....
For additional commands, e-mail:
xerces-j-user-help@xml....
opensubscriber is not affiliated with the authors of this message nor responsible for its content.