facebook

"Invalid" xdoclet-build.xml [Closed]

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #214459 Reply

    Version: 3.8.1
    Build id: 200408201200-3.8.1

    When 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>

    #214510 Reply

    Riyad Kalla
    Member

    I 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

    #214668 Reply

    I 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.

    #214685 Reply

    Riyad Kalla
    Member

    This 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.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: "Invalid" xdoclet-build.xml [Closed]

You must be logged in to post in the forum log in