facebook

XML Validation for only Some files

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #218419 Reply

    timmytool
    Member

    I have a few merge files that are used by Xdoclet to create the struts config and web.xml. They are not properly formed xml docs because they are just snippets that get inserted into the final product.

    Is there a way to turn of XML Validation for specific files or a directory?

    #218453 Reply

    Riyad Kalla
    Member

    Currently no, you have to turn off automatic XML validation and just execute it manually on the files you wish to validate.

    #218473 Reply

    john
    Member

    On a related note, is there any open request for excluding resources that have been marked as “Derived” (or contained in folders marked “Derived”) from automatic validation?

    #218478 Reply

    Riyad Kalla
    Member

    No, not that I’m aware of. Can you explain the “Dervied” operation in more detail?

    #218482 Reply

    john
    Member

    On any resource, the properties dialog has a checkbox for read-only and a second check box labeled “Derived”. Here’s an excerpt from http://help.eclipse.org/help30/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/resAdv_derived.htm explaining derived.

    Many resources get created in the course of translating, compiling, copying, or otherwise processing files that the user creates and edits. Derived resources are resources that are not original data, and can be recreated from their source files. It is common for derived files to be excluded from certain kinds of processing.

    It seems like derived resources would be good candidates for exclusion from auto-validation.

    On the topic of timmytool’s original question, it seems renaming those merge files to use some extension other than .xml would solve his problem.

    #218483 Reply

    Riyad Kalla
    Member

    I think this is a very good suggestion, I’ll file it. Thank you.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: XML Validation for only Some files

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