code: private void init() {
      masterLanguage = null;
      additionalRootAttrs.clear();
      // the collection is not modifiable and therefore cannot be cleared.
      additionalNamespaces = new ArrayList<>();
      textNodeList.clear();
      parseWarnings.clear();
    }
docs: Reinitializes the instance variables for a new build.