Path: csiph.com!usenet.pasdenom.info!news.albasani.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: eric@invalid.com (EricF) Newsgroups: comp.lang.java.programmer Subject: Re: how to make Eclipse ignore errors in certain .xml files? Date: Thu, 12 Jul 2012 03:28:34 GMT Organization: A noiseless patient Spider Lines: 20 Message-ID: References: Injection-Date: Thu, 12 Jul 2012 03:28:37 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="719324fc200bf1adc881a6a27e2d52e9"; logging-data="18772"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19NgtWF6avG45evloN/fw4I" X-Newsreader: News Xpress 2.01 Cancel-Lock: sha1:kIQVGAtWWzYte2IgLWro1djva50= Xref: csiph.com comp.lang.java.programmer:15971 In article , 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'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. > I see that you figured out how to get past this but it has a bad smell to it. If the files are bad xml and have to be bad xml, then they should not be xml.Or the bad part should be cdata. Someone doesn't know what they are doing. Eric