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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to