CVE-2023-4218 (Other, published 2023-11-09T09:15Z)
Description: value: In Eclipse IDE versions < 2023-09 (4.29) some files with xml content are parsed vulnerable against all sorts of XXE attacks. The user just needs to open any evil project or update an open project with a vulnerable file (for example for review a foreign repository or patch).

Severity: nan (CVSS v3 base score: 5)
Weakness: CWE-611 \u2014 Improper Restriction of XML External Entity Reference
The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output.
Repository: https://github.com/eclipse-platform/eclipse.platform.ui
Files changed:
bundles/org.eclipse.core.filebuffers/META-INF/MANIFEST.MF
bundles/org.eclipse.e4.emf.xpath/META-INF/MANIFEST.MF
bundles/org.eclipse.e4.ui.css.core/META-INF/MANIFEST.MF
bundles/org.eclipse.e4.ui.css.swt.theme/META-INF/MANIFEST.MF
bundles/org.eclipse.e4.ui.css.swt/META-INF/MANIFEST.MF
bundles/org.eclipse.e4.ui.dialogs/META-INF/MANIFEST.MF
bundles/org.eclipse.e4.ui.ide/META-INF/MANIFEST.MF
bundles/org.eclipse.e4.ui.model.workbench/META-INF/MANIFEST.MF
bundles/org.eclipse.e4.ui.progress/META-INF/MANIFEST.MF
bundles/org.eclipse.e4.ui.workbench.addons.swt/META-INF/MANIFEST.MF
bundles/org.eclipse.e4.ui.workbench.renderers.swt/META-INF/MANIFEST.MF
bundles/org.eclipse.e4.ui.workbench.swt/META-INF/MANIFEST.MF
bundles/org.eclipse.e4.ui.workbench/META-INF/MANIFEST.MF
bundles/org.eclipse.e4.ui.workbench3/META-INF/MANIFEST.MF
bundles/org.eclipse.jface.notifications/META-INF/MANIFEST.MF
bundles/org.eclipse.jface.text/META-INF/MANIFEST.MF
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/DialogSettings.java
bundles/org.eclipse.jface/src/org/eclipse/jface/internal/XmlProcessorFactoryJFace.java
bundles/org.eclipse.search/META-INF/MANIFEST.MF
bundles/org.eclipse.text/.settings/org.eclipse.jdt.core.prefs
bundles/org.eclipse.text/META-INF/MANIFEST.MF
bundles/org.eclipse.text/src/org/eclipse/text/templates/TemplateReaderWriter.java
bundles/org.eclipse.ui.browser/META-INF/MANIFEST.MF
bundles/org.eclipse.ui.editors/META-INF/MANIFEST.MF
bundles/org.eclipse.ui.forms/META-INF/MANIFEST.MF
bundles/org.eclipse.ui.forms/src/org/eclipse/ui/internal/forms/widgets/FormTextModel.java
bundles/org.eclipse.ui.genericeditor/META-INF/MANIFEST.MF
bundles/org.eclipse.ui.ide.application/META-INF/MANIFEST.MF
bundles/org.eclipse.ui.ide/META-INF/MANIFEST.MF
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/WelcomeEditor.java
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/WelcomeParser.java
bundles/org.eclipse.ui.monitoring/META-INF/MANIFEST.MF
bundles/org.eclipse.ui.navigator.resources/META-INF/MANIFEST.MF
bundles/org.eclipse.ui.navigator/META-INF/MANIFEST.MF
bundles/org.eclipse.ui.views.log/META-INF/MANIFEST.MF
bundles/org.eclipse.ui.views.properties.tabbed/META-INF/MANIFEST.MF
bundles/org.eclipse.ui.views/META-INF/MANIFEST.MF
bundles/org.eclipse.ui.workbench.texteditor/META-INF/MANIFEST.MF
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/XMLMemento.java	
bundles/org.eclipse.ui.workbench/META-INF/MANIFEST.MF
bundles/org.eclipse.ui/META-INF/MANIFEST.MF
bundles/org.eclipse.urischeme/META-INF/MANIFEST.MF
bundles/org.eclipse.urischeme/src/org/eclipse/urischeme/internal/registration/PlistFileWriter.java
examples/org.eclipse.ui.examples.adapterservice/META-INF/MANIFEST.MF
examples/org.eclipse.ui.examples.navigator/META-INF/MANIFEST.MF
examples/org.eclipse.ui.examples.readmetool/META-INF/MANIFEST.MF
examples/org.eclipse.ui.genericeditor.examples/META-INF/MANIFEST.MF
tests/org.eclipse.core.filebuffers.tests/META-INF/MANIFEST.MF
tests/org.eclipse.e4.ui.tests/META-INF/MANIFEST.MF
tests/org.eclipse.jface.tests.notifications/META-INF/MANIFEST.MF
tests/org.eclipse.jface.text.tests/META-INF/MANIFEST.MF
tests/org.eclipse.search.tests/META-INF/MANIFEST.MF
tests/org.eclipse.text.tests/META-INF/MANIFEST.MF
tests/org.eclipse.ui.editors.tests/META-INF/MANIFEST.MF
tests/org.eclipse.ui.genericeditor.tests/META-INF/MANIFEST.MF
tests/org.eclipse.ui.tests.navigator/META-INF/MANIFEST.MF
tests/org.eclipse.ui.tests.pluginchecks/META-INF/MANIFEST.MF
tests/org.eclipse.ui.tests.pluginchecks/src/org/eclipse/ui/tests/pluginchecks/PluginWalkerTest.java
tests/org.eclipse.ui.workbench.texteditor.tests/META-INF/MANIFEST.MF
tools/bundles/org.eclipse.e4.tools.compat/META-INF/MANIFEST.MF
tools/bundles/org.eclipse.e4.tools.compatibility.migration/META-INF/MANIFEST.MF
tools/bundles/org.eclipse.e4.tools.emf.editor3x/META-INF/MANIFEST.MF
tools/bundles/org.eclipse.e4.tools.emf.ui/META-INF/MANIFEST.MF
tools/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/tabs/DocUtil.java
tools/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/tabs/ListTab.java
tools/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/resourcelocator/TargetPlatformContributionCollector.java
tools/bundles/org.eclipse.e4.tools.jdt.templates/META-INF/MANIFEST.MF
tools/bundles/org.eclipse.e4.tools.persistence/META-INF/MANIFEST.MF
tools/bundles/org.eclipse.e4.tools/META-INF/MANIFEST.MF
tools/tests/org.eclipse.e4.tools.compatibility.migration.tests/META-INF/MANIFEST.MF
tools/tests/org.eclipse.e4.tools.persistence.tests/META-INF/MANIFEST.MF
Commit message: Refactor XML handling

Vulnerable code:
 org.eclipse.core.runtime;bundle-version="[3.28.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="3.16.100"
 org.eclipse.core.runtime;bundle-version="[3.27.0,4.0.0)"
 org.eclipse.core.runtime;bundle-version="[3.28.0,4.0.0)"
 org.eclipse.core.runtime;bundle-version="[3.28.0,4.0.0)"
 org.eclipse.core.runtime;bundle-version="3.27.0"
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.28.0,4.0.0)",
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.28.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="[3.28.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="[3.7.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="3.17.100"
 org.eclipse.core.runtime;bundle-version="[3.28.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="[3.28.0,4.0.0)"
 org.eclipse.core.runtime;bundle-version="[3.28.0,4.0.0)"
Require-Bundle: org.eclipse.core.runtime;bundle-version="3.18.0",
 org.eclipse.core.runtime;bundle-version="[3.28.0,4.0.0)",
import javax.xml.parsers.DocumentBuilderFactory;
			DocumentBuilder parser = DocumentBuilderFactory.newInstance()
					.newDocumentBuilder();
 org.eclipse.core.runtime;bundle-version="[3.27.0,4.0.0)",
org.eclipse.jdt.core.compiler.problem.discouragedReference=error
 org.eclipse.core.runtime;bundle-version="[3.28.0,4.0.0)"
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.transform.TransformerFactory;
			DocumentBuilderFactory factory= DocumentBuilderFactory.newInstance();
			DocumentBuilder parser= factory.newDocumentBuilder();
			DocumentBuilderFactory factory= DocumentBuilderFactory.newInstance();
			DocumentBuilder builder= factory.newDocumentBuilder();
			Document document= builder.newDocument();



			Transformer transformer=TransformerFactory.newInstance().newTransformer();
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.27.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="[3.28.0,4.0.0)",
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.27.0,4.0.0)",
	private static final DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory
			.newInstance();
		documentBuilderFactory.setNamespaceAware(true);
		documentBuilderFactory.setIgnoringComments(true);
			DocumentBuilder parser = documentBuilderFactory
					.newDocumentBuilder();
 org.eclipse.core.runtime;bundle-version="3.12.0",
 org.eclipse.core.runtime;bundle-version="[3.27.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="[3.27.0,4.0.0)",
import javax.xml.parsers.ParserConfigurationException;

import org.xml.sax.SAXException;
	public void gotoMarker(IMarker marker) {
		} catch (ParserConfigurationException | SAXException e) {
import javax.xml.parsers.SAXParserFactory;
	public WelcomeParser() throws ParserConfigurationException, SAXException,
			FactoryConfigurationError {
		super();
		SAXParserFactory factory = SAXParserFactory.newInstance();
		factory.setFeature("http://xml.org/sax/features/namespaces", true); //$NON-NLS-1$
		parser = factory.newSAXParser();

Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.28.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="[3.27.0,4.0.0)",
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.28.0,4.0.0)",
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.27.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="[3.28.0,4.0.0)",
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.28.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="[3.28.0,4.0.0)",
import java.util.Arrays;
import javax.xml.parsers.DocumentBuilderFactory;
	private static String FILE_STRING = "file"; //$NON-NLS-1$

	/**
	 * Clients who need to use the "file" protocol can override this method to
	 * return the original attribute value
	 *
	 * @param attributeOldValue
	 * @return return the new attribute value after concatenating the "file"
	 *         protocol restriction if does not exist already
	 */
	private static String getAttributeNewValue(Object attributeOldValue) {
		StringBuilder strNewValue = new StringBuilder(FILE_STRING);
		if (attributeOldValue instanceof String && ((String) attributeOldValue).length() != 0) {
			String strOldValue = (String) attributeOldValue;
			boolean exists = Arrays.asList(strOldValue.split(",")).stream().anyMatch(x -> x.trim().equals(FILE_STRING)); //$NON-NLS-1$
			if (!exists) {
				strNewValue.append(", ").append(strOldValue); //$NON-NLS-1$
			} else {
				strNewValue = new StringBuilder(strOldValue);
			}
		}
		return strNewValue.toString();
	}

		DocumentBuilderFactory factory = null;
		Object attributeDTDOldValue = null;
		Object attributeSchemaOldValue = null;
			factory = DocumentBuilderFactory.newInstance();
			try {
				attributeDTDOldValue = factory.getAttribute(javax.xml.XMLConstants.ACCESS_EXTERNAL_DTD);
				attributeSchemaOldValue = factory.getAttribute(javax.xml.XMLConstants.ACCESS_EXTERNAL_SCHEMA);
			} catch (NullPointerException | IllegalArgumentException e) {
				// Attributes not defined
			}
			factory.setAttribute(javax.xml.XMLConstants.ACCESS_EXTERNAL_DTD,
					getAttributeNewValue(attributeDTDOldValue));
			factory.setAttribute(javax.xml.XMLConstants.ACCESS_EXTERNAL_SCHEMA,
					getAttributeNewValue(attributeSchemaOldValue));
			DocumentBuilder parser = factory.newDocumentBuilder();
		} finally {
			if (factory != null) {
				factory.setAttribute(javax.xml.XMLConstants.ACCESS_EXTERNAL_DTD, attributeDTDOldValue);
				factory.setAttribute(javax.xml.XMLConstants.ACCESS_EXTERNAL_SCHEMA, attributeSchemaOldValue);
			}
		Document document;
			document = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
//            throw new Error(e);
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.28.0,4.0.0)",
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.2.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="[3.28.0,4.0.0)",
import java.io.Closeable;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
		try {
			TransformerFactory.newInstance().newTransformer().transform(source, new StreamResult(writer));
		} catch (TransformerException e) {
		} finally {
			close(writer);
		DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
		try {
			DocumentBuilder builder = factory.newDocumentBuilder();
			return builder.parse(new InputSource(reader));
		} finally {
			close(reader);
		}
	}

	private void close(Closeable closeable) {
		try {
			closeable.close();
		} catch (IOException e) {
			throw new IllegalStateException(e);
 org.eclipse.core.runtime;bundle-version="3.4.0",
 org.eclipse.core.runtime;bundle-version="[3.28.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="[3.28.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="3.11.0",
 org.eclipse.core.runtime;bundle-version="[3.28.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="3.4.0",
 org.eclipse.core.runtime;bundle-version="3.24.0"
 org.eclipse.core.runtime;bundle-version="[3.28.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="[3.27.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="[3.5.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="[3.28.0,4.0.0)",
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.28.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="[3.28.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="3.14.100",
		DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
 org.eclipse.core.runtime;bundle-version="[3.5.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="3.6.0",
 org.eclipse.core.runtime;bundle-version="[3.20.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="3.6.0",
Require-Bundle: org.eclipse.core.runtime;bundle-version="3.27.0",
import javax.xml.parsers.DocumentBuilderFactory;
		Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
import javax.xml.parsers.DocumentBuilderFactory;
				final Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder()
						.parse(new InputSource(new StringReader(xml)));
		final TransformerFactory tf = TransformerFactory.newInstance();
import javax.xml.parsers.DocumentBuilderFactory;
				final Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder()
						.parse(new File(installLocation + File.separator + ".classpath")); //$NON-NLS-1$
 org.eclipse.core.runtime;bundle-version="3.6.0"
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.20.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="3.27.0",
 org.eclipse.core.runtime;bundle-version="[3.20.0,4.0.0)",
Require-Bundle: org.eclipse.core.runtime;bundle-version="3.24.0",

Fixed code:
 org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="3.29.0"
 org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)"
 org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)"
 org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)"
 org.eclipse.core.runtime;bundle-version="3.29.0"
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="3.29.0"
 org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)"
 org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)"
Require-Bundle: org.eclipse.core.runtime;bundle-version="3.29.0",
 org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
import org.eclipse.jface.internal.XmlProcessorFactoryJFace;
			DocumentBuilder parser = XmlProcessorFactoryJFace.createDocumentBuilderWithErrorOnDOCTYPE();
/*******************************************************************************
 *  Copyright (c) 2023 Joerg Kubitz and others.
 *
 *  This program and the accompanying materials
 *  are made available under the terms of the Eclipse Public License 2.0
 *  which accompanies this distribution, and is available at
 *  https://www.eclipse.org/legal/epl-2.0/
 *
 *  SPDX-License-Identifier: EPL-2.0
 *******************************************************************************/
package org.eclipse.jface.internal;

import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;

/**
 * XML processing which prohibits external entities.
 *
 * @see <a href="https://rules.sonarsource.com/java/RSPEC-2755/">RSPEC-2755</a>
 */
/* A copy of org.eclipse.core.internal.runtime.XmlProcessorFactory for jface. */
public class XmlProcessorFactoryJFace {
	private XmlProcessorFactoryJFace() {
		// static Utility only
	}

	private static final DocumentBuilderFactory DOCUMENT_BUILDER_FACTORY_ERROR_ON_DOCTYPE = createDocumentBuilderFactoryWithErrorOnDOCTYPE();

	/**
	 * Creates DocumentBuilderFactory which throws SAXParseException when detecting
	 * external entities. It's magnitudes faster to call
	 * {@link #createDocumentBuilderWithErrorOnDOCTYPE()}.
	 *
	 * @return javax.xml.parsers.DocumentBuilderFactory
	 */
	public static synchronized DocumentBuilderFactory createDocumentBuilderFactoryWithErrorOnDOCTYPE() {
		DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
		// completely disable DOCTYPE declaration:
		try {
			factory.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true); //$NON-NLS-1$
		} catch (ParserConfigurationException e) {
			throw new RuntimeException(e.getMessage(), e);
		}
		return factory;
	}

	/**
	 * Creates DocumentBuilder which throws SAXParseException when detecting
	 * external entities. The builder is not thread safe.
	 *
	 * @return javax.xml.parsers.DocumentBuilder
	 * @throws ParserConfigurationException
	 */
	public static DocumentBuilder createDocumentBuilderWithErrorOnDOCTYPE() throws ParserConfigurationException {
		return DOCUMENT_BUILDER_FACTORY_ERROR_ON_DOCTYPE.newDocumentBuilder();
	}

}
 org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
org.eclipse.jdt.core.builder.annotationPath.allLocations=disabled
org.eclipse.jdt.core.compiler.annotation.nonnull.secondary=
org.eclipse.jdt.core.compiler.annotation.nonnullbydefault.secondary=
org.eclipse.jdt.core.compiler.annotation.nullable.secondary=
org.eclipse.jdt.core.compiler.problem.APILeak=warning
org.eclipse.jdt.core.compiler.problem.annotatedTypeArgumentToUnannotated=info
org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
org.eclipse.jdt.core.compiler.problem.nonnullTypeVariableFromLegacyInvocation=warning
org.eclipse.jdt.core.compiler.problem.pessimisticNullAnalysisForFreeTypeVariables=warning
org.eclipse.jdt.core.compiler.problem.suppressWarningsNotFullyAnalysed=info
org.eclipse.jdt.core.compiler.problem.terminalDeprecation=warning
org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentType=warning
org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentTypeStrict=disabled
org.eclipse.jdt.core.compiler.problem.unlikelyEqualsArgumentType=info
org.eclipse.jdt.core.compiler.problem.unstableAutoModuleName=warning
 org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)"
			@SuppressWarnings("restriction")
			DocumentBuilder parser= org.eclipse.core.internal.runtime.XmlProcessorFactory.createDocumentBuilderWithErrorOnDOCTYPE();
			@SuppressWarnings("restriction")
			Document document= org.eclipse.core.internal.runtime.XmlProcessorFactory.newDocumentWithErrorOnDOCTYPE();
			@SuppressWarnings("restriction")
			Transformer transformer= org.eclipse.core.internal.runtime.XmlProcessorFactory.createTransformerFactoryWithErrorOnDOCTYPE().newTransformer();
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
	@SuppressWarnings("restriction")
	private static final DocumentBuilderFactory DOCUMENT_BUILDER_FACTORY = org.eclipse.core.internal.runtime.XmlProcessorFactory
			.createDocumentBuilderFactoryWithErrorOnDOCTYPE();
		DOCUMENT_BUILDER_FACTORY.setNamespaceAware(true);
		DOCUMENT_BUILDER_FACTORY.setIgnoringComments(true);
			DocumentBuilder parser = DOCUMENT_BUILDER_FACTORY.newDocumentBuilder();
 org.eclipse.core.runtime;bundle-version="3.29.0",
 org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
	public void gotoMarker(@SuppressWarnings({ "unused", "javadoc" }) IMarker marker) {
		} catch (Exception e) {
	 *
	 * @throws ParserConfigurationException
	 * @throws SAXException
	 * @throws FactoryConfigurationError
	public WelcomeParser() throws ParserConfigurationException, SAXException, FactoryConfigurationError {
		@SuppressWarnings("restriction")
		SAXParser p = org.eclipse.core.internal.runtime.XmlProcessorFactory.createSAXParserWithErrorOnDOCTYPE(true);
		parser = p;
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
			@SuppressWarnings("restriction")
			DocumentBuilder parser = org.eclipse.core.internal.runtime.XmlProcessorFactory
					.createDocumentBuilderWithErrorOnDOCTYPE();
			@SuppressWarnings("restriction")
			Document document = org.eclipse.core.internal.runtime.XmlProcessorFactory.newDocumentWithErrorOnDOCTYPE();
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
		try (writer) {
			@SuppressWarnings("restriction")
			TransformerFactory f = org.eclipse.core.internal.runtime.XmlProcessorFactory
			.createTransformerFactoryWithErrorOnDOCTYPE();
			f.newTransformer().transform(source, new StreamResult(writer));
		} catch (TransformerException | IOException e) {
	@SuppressWarnings("restriction")
		try (reader) {
			return org.eclipse.core.internal.runtime.XmlProcessorFactory
					.parseWithErrorOnDOCTYPE(new InputSource(reader));
 org.eclipse.core.runtime;bundle-version="3.29.0",
 org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="3.29.0",
 org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="3.29.0",
 org.eclipse.core.runtime;bundle-version="3.29.0"
 org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="3.29.0",
import org.eclipse.core.internal.runtime.XmlProcessorFactory;
@SuppressWarnings("restriction")
		DocumentBuilderFactory factory = XmlProcessorFactory.createDocumentBuilderFactoryWithErrorOnDOCTYPE();
 org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="3.29.0",
 org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="3.29.0",
Require-Bundle: org.eclipse.core.runtime;bundle-version="3.29.0",

@SuppressWarnings("restriction")
		Document doc = org.eclipse.core.internal.runtime.XmlProcessorFactory.newDocumentWithErrorOnDOCTYPE();
				@SuppressWarnings("restriction")
				final Document doc = org.eclipse.core.internal.runtime.XmlProcessorFactory
						.parseWithErrorOnDOCTYPE(new InputSource(new StringReader(xml)));
		@SuppressWarnings("restriction")
		final TransformerFactory tf = org.eclipse.core.internal.runtime.XmlProcessorFactory
				.createTransformerFactoryWithErrorOnDOCTYPE();
import org.eclipse.core.internal.runtime.XmlProcessorFactory;
@SuppressWarnings("restriction")
				File file = new File(installLocation + File.separator + ".classpath"); //$NON-NLS-1$
				final Document doc = XmlProcessorFactory.parseWithErrorOnDOCTYPE(file);
 org.eclipse.core.runtime;bundle-version="3.29.0"
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
 org.eclipse.core.runtime;bundle-version="3.29.0",
 org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
Require-Bundle: org.eclipse.core.runtime;bundle-version="3.29.0",