public LogicalExpression MakeLogical(LogicalExpression rhs) { UnaryOperator logicalOp = new UnaryOperator(); logicalOp.AddNot(new Altova.Types.SchemaString("Not")); UnaryType newUnaryExpression = new UnaryType(); newUnaryExpression.AddUnaryOperator(logicalOp); newUnaryExpression.AddLogicalExpression(rhs); LogicalExpression newLogical = new LogicalExpression(); newLogical.AddUnary(newUnaryExpression); return(newLogical); }