Bug 130043 [Forms] Content is not allowed in prolog.
When specifying non-"HTML" text to FormText.setText() where parseTags is true "[Fatal Error] :1:1: Content is not allowed in prolog." will be output to stderr. The cause is FormTextModel.parseInputStream() is not setting an error handler on the parser (by default errors are reported to stderr). There are a number of bug reports against Eclipse in general where this type of error is seen (and most of them have been marked as "can't reproduce"). Could someone push out a general announcement to the dev team stating that whenever an XML parser is used, an error handler needs to be set so that these messages don't default to the console?
bundles/org.eclipse.ui.forms/src/org/eclipse/ui/internal/forms/widgets/FormTextModel.java
/*******************************************************************************
 * Copyright (c) 2000, 2007 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.ui.internal.forms.widgets;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.util.Vector;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.eclipse.swt.SWT;
import org.eclipse.ui.forms.HyperlinkSettings;
import org.w3c.dom.Document;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
public class FormTextModel {