docs: public void validateXmlStructure(EntityResolver resolver) throws CmsXmlException {
  
          if (m_file != null) {
              // file is set, use bytes from file directly
              CmsXmlUtils.validateXmlStructure(m_file.getContents(), resolver);
          } else {
              // use XML document - note that this will be copied in a byte[] array first
              CmsXmlUtils.validateXmlStructure(m_document, m_encoding, resolver);
          }
      }