facebook

XML validation of build.xml [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #197222 Reply

    tzhgosh1
    Member

    I am having trouble with the XML editor trying to validate my ant build.xml

    The problem is, that my build.xml file is generic to all our projects. We then add project specific tasks to the build.xml by including a custom_build.xml as an entity declaration in the DTD.

    The problem is that including the DOCTYPE declaration makes the XML editor perform validation checking, which then returns errors.

    I don’t wan’t all the different projects having different build.xml files, so how can I prevent these errors?

    Thanks
    Sharon

    PS:The
    build.xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE project [
      <!ENTITY custom_targets     SYSTEM "custom_build.xml">
      
    ]> 
    <project basedir="." default="HELP" name="PortalCMA">
    &custom_targets
    .....
    </project>

    custom_build.xml

    <target....>
    ......
    </target>
    
    <target....>
    .....
    </target>
    #197226 Reply

    Scott Anderson
    Participant

    Sharon,

    You need to upgrade to version 2.5.1 of Enterprise Workbench. The overly zealous validator was reigned in a bit in the new release. Please read the upgrade FAQ at:
    http://myeclipseide.com/modules.php?op=modload&name=FAQ&file=index&myfaq=yes&id_cat=5&categories=Installation+and+Updates&parent_id=4#15

    It will let you see what both your options are. Since you’ve most likely got version 2.5.0 installed, you can use the Eclipse Update Manager to upgrade your installation.

    –Scott
    MyEclipse Support

    #197313 Reply

    tzhgosh1
    Member

    Great thanks,
    version 2.5.1 has fixed the problem

    Many thanks
    Sharon

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: XML validation of build.xml [Closed]

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