maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ltheu...@apache.org
Subject svn commit: r943450 - /maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/util/XmlValidator.java
Date Wed, 12 May 2010 11:32:30 GMT
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 )
         {



Mime
View raw message