Class XMLContentDescriber

All Implemented Interfaces:
IContentDescriber, ITextContentDescriber
Direct Known Subclasses:
XMLRootElementContentDescriber, XMLRootElementContentDescriber2

public class XMLContentDescriber extends org.eclipse.core.internal.content.TextContentDescriber
A content describer for XML files. This class provides basis for XML-based content describers.

The document is detected by the describer as VALID, if it contains an xml declaration with <?xml prefix and the encoding in the declaration is correct.

Below are sample declarations recognized by the describer as VALID
  • <?xml version="1.0"?>
  • <?xml version="1.0"
  • <?xml version="1.0" encoding="utf-16"?>
  • <?xml version="1.0" encoding="utf-16?>
org.eclipse.core.contenttype 3.4
See Also:
This class is not intended to be instantiated by clients. Clients should use it to provide their own XML-based describers that can be referenced by the "describer" configuration element in extensions to the org.eclipse.core.runtime.contentTypes extension point.