title: log4j:WARN Document root element "log4j:configuration", must match DOCTYPE root "null"
body: <p>I want to connect my log4j.xml with log4j.xsd (xml schema). Project don't have any warnings or errors. But when I start it, Ihave such console warnings:</p>
  
  <p>log4j:WARN Continuable parsing error 6 and column 66.</p>
  
  <p>log4j:WARN Document root element "log4j:configuration", must match DOCTYPE root "null".</p>
  
  <p>log4j:WARN Continuable parsing error 6 and column 66.</p>
  
  <p>log4j:WARN Document is invalid: no grammar found.</p>
  
  <p>I think, problem in schema Location. But I don't know, how to write it normally.
  Hope for your's advices.</p>
  
  <p>My log4j.xml:</p>
  
  <pre><code>  &lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  
     &lt;log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      debug="false"
      xsi:schemaLocation="http://www.example.org/log4j log4j.xsd "&gt;
  
  &lt;appender name="logFileAppender" class="org.apache.log4j.RollingFileAppender"&gt;
          &lt;param name="File" value="E:/Codes/HorseRacing/logFile.log"/&gt;
          &lt;param name="MaxFileSize" value="1MB"/&gt;
          &lt;param name="MaxBackupIndex" value="5"/&gt;
          &lt;param name="Encoding" value="UTF-8"/&gt;
          &lt;layout class="org.apache.log4j.EnhancedPatternLayout"&gt;
          &lt;param name="ConversionPattern" value="%d{ISO8601} [%-5p][%-16.16t][%40.40c] - %m%n"/&gt;
          &lt;/layout&gt;
      &lt;/appender&gt;
  
       &lt;appender name="ConsoleAppender" class="org.apache.log4j.ConsoleAppender"&gt;
          &lt;param name="Encoding" value="Cp866"/&gt;
          &lt;layout class="org.apache.log4j.PatternLayout"&gt;
          &lt;param name="ConversionPattern" value="%d{ISO8601} [%-5p][%-25.25l][%10.10c] - %m%n" /&gt;
          &lt;/layout&gt;
      &lt;/appender&gt;
  
     &lt;logger name="appLogger"&gt;
          &lt;level value="INFO"/&gt;
          &lt;appender-ref ref="logFileAppender"/&gt;
          &lt;appender-ref ref="ConsoleAppender"/&gt;
      &lt;/logger&gt;
  
  &lt;/log4j:configuration&gt;
  </code></pre>
  
  <p>And my log4j.xsd:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xsd:schema attributeFormDefault="unqualified"
      elementFormDefault="qualified" version="1.0"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
      &lt;xsd:element name="configuration"&gt;
     &lt;xsd:complexType&gt;
        &lt;xsd:sequence&gt;
          &lt;xsd:element maxOccurs="unbounded" name="appender"&gt;
            &lt;xsd:complexType&gt;
              &lt;xsd:sequence&gt;
                &lt;xsd:element maxOccurs="unbounded" name="param"&gt;
                  &lt;xsd:complexType&gt;
                    &lt;xsd:attribute name="name" type="xsd:string" /&gt;
                    &lt;xsd:attribute name="value" type="xsd:string" /&gt;
                  &lt;/xsd:complexType&gt;
                &lt;/xsd:element&gt;
                &lt;xsd:element name="layout"&gt;
              &lt;xsd:complexType&gt;
                &lt;xsd:sequence&gt;
                  &lt;xsd:element name="param"&gt;
                    &lt;xsd:complexType&gt;
                      &lt;xsd:attribute name="name" type="xsd:string" /&gt;
                      &lt;xsd:attribute name="value" type="xsd:string" /&gt;
                    &lt;/xsd:complexType&gt;
                  &lt;/xsd:element&gt;
                &lt;/xsd:sequence&gt;
                &lt;xsd:attribute name="class" type="xsd:string" /&gt;
              &lt;/xsd:complexType&gt;
            &lt;/xsd:element&gt;
          &lt;/xsd:sequence&gt;
          &lt;xsd:attribute name="name" type="xsd:string" /&gt;
          &lt;xsd:attribute name="class" type="xsd:string" /&gt;
        &lt;/xsd:complexType&gt;
      &lt;/xsd:element&gt;
      &lt;xsd:element name="logger"&gt;
        &lt;xsd:complexType&gt;
          &lt;xsd:sequence&gt;
            &lt;xsd:element name="level"&gt;
              &lt;xsd:complexType&gt;
                &lt;xsd:attribute name="value" type="xsd:string" /&gt;
              &lt;/xsd:complexType&gt;
            &lt;/xsd:element&gt;
            &lt;xsd:element maxOccurs="unbounded" name="appender-ref"&gt;
                 &lt;xsd:complexType&gt;
                  &lt;xsd:attribute name="ref" type="xsd:string" /&gt;
                 &lt;/xsd:complexType&gt;
               &lt;/xsd:element&gt;
             &lt;/xsd:sequence&gt;
            &lt;xsd:attribute name="name" type="xsd:string" /&gt;
           &lt;/xsd:complexType&gt;
         &lt;/xsd:element&gt;
       &lt;/xsd:sequence&gt;
       &lt;xsd:attribute name="debug" type="xsd:boolean" /&gt;
       &lt;xsd:attribute name="schemaLocation" type="xsd:string" /&gt;
     &lt;/xsd:complexType&gt;
    &lt;/xsd:element&gt;
     &lt;/xsd:schema&gt;
  
     &lt;logger name="appLogger"&gt;
      &lt;level value="INFO"/&gt;
      &lt;appender-ref ref="logFileAppender"/&gt;
      &lt;appender-ref ref="ConsoleAppender"/&gt;
      &lt;/logger&gt;
  
      &lt;/log4j:configuration&gt;
  </code></pre>
  
  <p>P.S. Sorry for my english...</p>