makeValid
Description
This method will add any required children to an element, or remove or replace invalid existing children so that it becomes schema valid. This method should be called from within a transaction. Therefore you need to wrap or run this method in a transaction, unless you are using this method within a command. For commands, Content Editor automatically runs your code for commands wrapped in transactions.
See also makeComplete.
Return Value
XopusNode . The node that was made valid.