- This topic has 3 replies, 2 voices, and was last updated 20 years, 2 months ago by Riyad Kalla.
-
AuthorPosts
-
rws@templarcorp.comMemberVersion: 3.8.1
Build id: 200408201200-3.8.1When xdoclet-build.xml is created or modified, the following error appears in the “Problems” display:
cvs-elt.1: Cannot fild the declaration of element ‘project’
If I go into the project properties (“MyEclipse-Validation”) and turn off “XML Validator”, the error disappears. In either case, the xdoclet build file seems to work properly. Any clue about what’s going on?
<?xml version=”1.0″ encoding=”UTF-8″?>
<project default=”_generation_” name=”XDoclet Generator”>
<path id=”xdoclet.classpath”>
<fileset dir=”J:/EclipseIDE/MyEclipse3.8.1/eclipse/plugins/com.genuitec.jboss.ide.eclipse.xdoclet.core_3.8.1″>
<include name=”*.jar”/>
</fileset><pathelement location=”H:/Eclipse3.1/Xfer-Entity/classes”/>
…
</project>
Riyad KallaMemberI cannot reproduce this and am using 3.8.1+QF3. You can apply Quick Fix 3 by going here: http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-3514.html
rws@templarcorp.comMemberI installed the quick fix. The error still appears when the XML validator is on. It seems that the validator doesn’t like the fact that xdoclet-build.xml has neither a schema nor a DTD specified. Same problem occurs on other XML fragments in different projects. To keep the XML validator on, I need some way to exempt specific files from validation, or I need a way to tell the validator that unstructured XML (neither a schema nor a DTD) is OK.
Riyad KallaMemberThis has been discussed in a few other threads. XML Validation is just that, used to validate XML files, it will naturally show errors on fragments that are not wellformed/complete XML files. The problem with XDoclet is that they decided to go with a .xml file extension instead of something possibly more appropriate like .xmlf (fragment) or the like.
We encourage people in this situation to turn off XML validation and then manually validate the files that need it. We have an open enhancement filed for an “Exlcusion” list like we provide now for the JSP validator however so this won’t be forever.
-
AuthorPosts