You are viewing a plain text version of this content. The canonical link for it is here.
Posted to doxia-commits@maven.apache.org by lt...@apache.org on 2010/05/12 13:32:30 UTC

svn commit: r943450 - /maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/util/XmlValidator.java

Author: ltheussl
Date: Wed May 12 11:32:30 2010
New Revision: 943450

URL: http://svn.apache.org/viewvc?rev=943450&view=rev
Log:
[DOXIA-390] Validation logic is not correct

Modified:
    maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/util/XmlValidator.java

Modified: maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/util/XmlValidator.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/util/XmlValidator.java?rev=943450&r1=943449&r2=943450&view=diff
==============================================================================
--- maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/util/XmlValidator.java (original)
+++ maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/util/XmlValidator.java Wed May 12 11:32:30 2010
@@ -103,12 +103,9 @@ public class XmlValidator
                 }
             }
 
-            // 3 validate content if doctype or xsd
-            if ( hasDoctype || hasXsd )
-            {
-                getLog().debug( "Validating the content..." );
-                getXmlReader( hasXsd && hasDoctype ).parse( new InputSource( new StringReader( content ) ) );
-            }
+            // 3 validate content
+            getLog().debug( "Validating the content..." );
+            getXmlReader( hasXsd && hasDoctype ).parse( new InputSource( new StringReader( content ) ) );
         }
         catch ( IOException e )
         {