This sample implements three components which act as generic XML import/export
filters. The intention is that a different import or export service will
be used depending on the name given in the TypeDetection.xml file.

Currently, this functionality is disabled and the filter only operates as
a flat XML import/export for the Writer. This means that all 4 streams,
content.xml, styles.xml, meta.xml and settings.xml are exported in a single
file, uncompressed, when using these filters.

To use these filters, first compile them and register them in your 
applicat.rdb, then add the following lines to your TypeDetection.xml
file, inside the <Types> element:

			<Type cfg:name="writer_Flat_XML_File">
				<UIName cfg:type="string" cfg:localized="true">
					<cfg:value xml:lang="en-US">Flat Writer XML file Export</cfg:value>
				</UIName>
				<Data cfg:type="string">0,,,,xml,20002,</Data>
			</Type>
			<Type cfg:name="writer_Flat_XML_FileImport">
				<UIName cfg:type="string" cfg:localized="true">
					<cfg:value xml:lang="en-US">Flat Writer XML file Import</cfg:value>
				</UIName>
				<Data cfg:type="string">0,,,,xml,20002,</Data>
			</Type>

And these lines inside the <Filters> element:

			<Filter cfg:name="writer_Flat_XML_File">
				<Installed cfg:type="boolean">true</Installed>
				<UIName cfg:type="string" cfg:localized="true"><cfg:value xml:lang="en-US">Flat Writer XML File Export</cfg:value></UIName>
				<Data cfg:type="string">0,writer_Flat_XML_File,com.sun.star.text.TextDocument,com.sun.star.comp.Writer.GenericXMLExportFilter,524354,,0,,</Data>
			</Filter>

			<Filter cfg:name="writer_Flat_XML_FileImport">
				<Installed cfg:type="boolean">true</Installed>
				<UIName cfg:type="string" cfg:localized="true"><cfg:value xml:lang="en-US">Flat Writer XML File Import</cfg:value></UIName>
				<Data cfg:type="string">0,writer_Flat_XML_FileImport,com.sun.star.text.TextDocument,com.sun.star.comp.Writer.GenericXMLImportFilter,524353,,0,,</Data>
			</Filter>

Alternatively, you can use the unified GenericXMLFilter which combines these two services
into one component. To use this, add this inside the <Types> element of your
TypeDetection.xml:

			<Type cfg:name="writer_Flat_XML_File">
				<UIName cfg:type="string" cfg:localized="true">
					<cfg:value xml:lang="en-US">Flat Writer XML file</cfg:value>
				</UIName>
				<Data cfg:type="string">0,,,,xml,20002,</Data>
			</Type>

And these inside the <Filters> element:

			<Filter cfg:name="writer_Flat_XML_File">
				<Installed cfg:type="boolean">true</Installed>
				<UIName cfg:type="string" cfg:localized="true"><cfg:value xml:lang="en-US">Flat Writer XML File</cfg:value></UIName>
				<Data cfg:type="string">0,writer_Flat_XML_File,com.sun.star.text.TextDocument,com.sun.star.comp.Writer.GenericXMLFilter,524355,,0,,</Data>
			</Filter>

Using the unified import/export component is much easier for the user.
