Project: Eclipse_Platform_UI
Bug 130043 [Forms] Content is not allowed in prolog.
Reported: 2006-03-01 17:48:33 | Status: resolved fixed

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?

Files changed in fix:
bundles/org.eclipse.ui.forms/src/org/eclipse/ui/internal/forms/widgets/FormTextModel.java