File Content Extraction 26.3
Filter SDK Java Programming Guide

# Filter XML Files

File Content Extraction can detect many types of XML file, including:

- Generic XML
- Microsoft Office 2003 XML (Word, Excel, and Visio)
- StarOffice/OpenOffice XML (text document, presentation, and spreadsheet)

When you filter XML, you can tell File Content Extraction which elements to treat as content and metadata, or to treat the whole file as plain text. The default configuration has the following behavior:

- For Star Office and Microsoft Office 2003 XML formats, File Content Extraction has special handling to extract content and metadata, based on knowledge of how those formats use XML.

- For Generic XML, File Content Extraction ignores element names and attributes, and filters all other text. This approach attempts to minimize the amount of structural data that it filters, in favor of useful data.

You can customize how to filter text and metadata from XML, including from the known formats such as Microsoft Office XML. For more information, see Configure Element Extraction for XML Documents.

Alternatively, you might want to filter XML files as plain text, with all markup unchanged. For this case, you must change the `formats.ini` configuration file to use the plain text reader (af) instead of the XML reader (xml). You can choose whether to do this for all formats that are routed to the XML reader, or just particular formats. For more information about how to route detected formats to the desired readers, see File Formats and Document Readers.

Copyright 1997-2026 Open Text
Version 26.3 | Last updated July 2026

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: File Content Extraction 26.3

Topic Title: Filter XML Files