Path: csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Eric Sosman Newsgroups: comp.lang.java.programmer Subject: Re: how to make Eclipse ignore errors in certain .xml files? Date: Wed, 11 Jul 2012 10:15:54 -0400 Organization: A noiseless patient Spider Lines: 23 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 11 Jul 2012 14:15:56 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="d3779b2c4a3397eb5709eec94bad057a"; logging-data="4813"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ziKTabU1Yap1kU8qcoNkz" User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 In-Reply-To: Cancel-Lock: sha1:Vu3jt7JRZwXRovbmuacFWzyg1UA= Xref: csiph.com comp.lang.java.programmer:15939 On 7/11/2012 10:06 AM, Andreas Leitgeb 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'd like to tell eclipse to treat certain handpicked xml-files > as opaque files and to not even attempt to validate them any way. > There are also *other* xml-files in the project that I still want > to have validated and eventually red-flagged. These however are > in different folders than the "bad" ones, in case it matters... > > I've tried googling for: eclipse xml errors ignore validate > (and subsets thereof) but couldn't find a relevant one among > the results, yet. Have you tried giving the bad files a different extension, like "foo.bad" instead of "foo.xml"? -- Eric Sosman esosman@ieee-dot-org.invalid