code: public static void validateInputs(EditXmlInputs inputs) throws Exception {
          validateXmlAndFilePathInputs(inputs.getXml(), inputs.getFilePath());
  
          if (Constants.Inputs.MOVE_ACTION.equals(inputs.getAction())) {
              validateIsNotEmpty(inputs.getXpath2(), "xpath2 input is required for action 'move' ");
          }
          if (!Constants.Inputs.SUBNODE_ACTION.equals(inputs.getAction()) && !Constants.Inputs.MOVE_ACTION.equals(inputs.getAction())) {
              validateIsNotEmpty(inputs.getType(), "type input is required for action '" + inputs.getAction() + "'");
              if (!Constants.Inputs.TYPE_ELEM.equals(inputs.getType()) && !Constants.Inputs.TYPE_ATTR.equals(inputs.getType()) && !Constants.Inputs.TYPE_TEXT.equals(inputs.getType())) {
                  throw new Exception("Invalid type. Only supported : " + Constants.Inputs.TYPE_ELEM + ", " + Constants.Inputs.TYPE_ATTR + ", " + Constants.Inputs.TYPE_TEXT);
              }
              if (Constants.Inputs.TYPE_ATTR.equals(inputs.getType())) {
                  validateIsNotEmpty(inputs.getName(), "name input is required for type 'attr' ");
              }
          }
      }
docs: Validates the operation inputs.
  
  @param inputs@throws Exception for invalid inputs