Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #15977

Re: how to make Eclipse ignore errors in certain .xml files?

From Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at>
Newsgroups comp.lang.java.programmer
Subject Re: how to make Eclipse ignore errors in certain .xml files?
Date 2012-07-12 08:00 +0000
Organization A noiseless patient Spider
Message-ID <slrnjvt11e.u9l.avl@gamma.logic.tuwien.ac.at> (permalink)
References <slrnjvr23s.u9l.avl@gamma.logic.tuwien.ac.at> <jtlg95$iak$1@dont-email.me>

Show all headers | View raw


EricF <eric@invalid.com> wrote:
> In article <slrnjvr23s.u9l.avl@gamma.logic.tuwien.ac.at>, avl@logic.at wrote:
>> Some project developed in Eclipse needs certain "*.xml"-files 
>> for running/testing.  Some of these files are (and really have
>> to be) invalid XML and eclipse flags them red.
> I see that you figured out how to get past this but it has a bad smell to it. 

I do agree on the bad smell, but natural fertilizer typically has it, too... ;-)

> If the files are bad xml and have to be bad xml, then they should not be xml.

The tool, to which these files are fed, woudn't accept anything but files
with an .xml extension. That means, we would have to rename the files to
.xml during production. Specifically silencing eclipse for them really looks
like the easier (less intrusive) solution.  What I didn't write so far is,
that the maintenance of the valid and the invalid xmls is some coworker's job
and he probably appreciates seeing the red flags where he actively expects
to see them. It's an indication to them that the right part is wrong ;-)

> Or the bad part should be cdata.

Making the bad part cdata, however, misses the point, as the files would be
correct xml, then. 

Thanks, anyway, for caring that far.  I don't ask anyone to waste more 
thoughts into this thread. There are too many unanswered questions (two
old ones by myself, one about sharing code between a library-project and
a plugin-project in eclipse <slrnjr7m5n.kvi.avl@gamma.logic.tuwien.ac.at>,
and one about Corba and ssliop <slrnjpac40.kvi.avl@gamma.logic.tuwien.ac.at>)
whose answering would be so much more appreciated...

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

how to make Eclipse ignore errors in certain .xml files? Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-07-11 14:06 +0000
  Re: how to make Eclipse ignore errors in certain .xml files? Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-07-11 10:15 -0400
    Solved (was: Re: how to make Eclipse ignore errors in certain .xml files?) Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-07-11 15:32 +0000
  Re: how to make Eclipse ignore errors in certain .xml files? eric@invalid.com (EricF) - 2012-07-12 03:28 +0000
    Re: how to make Eclipse ignore errors in certain .xml files? Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-07-12 08:00 +0000
      Re: how to make Eclipse ignore errors in certain .xml files? Jason Bailey <Jason.Bailey@sas.com> - 2012-07-12 13:41 -0400
        Re: how to make Eclipse ignore errors in certain .xml files? Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-07-13 16:41 +0000
  Re: how to make Eclipse ignore errors in certain .xml files? Roedy Green <see_website@mindprod.com.invalid> - 2012-07-13 12:11 -0700
    Re: how to make Eclipse ignore errors in certain .xml files? Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-07-13 21:55 +0000

csiph-web