Multiple XML file types can have the same file name extension (typically .xml). SDL file support software distinguishes between these file types by matching the contents of the file with detection settings for the file type. A simple example of a detection setting is the root element required for a specific XML file type. You can specify detection settings in the Detection page of the XML file type settings.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<email> <sendto> John Brown </sendto> </email>
xsi:schemaLocation="http://www.sdl.com/xml/SdlExample.xsd"
xsi:noNamespaceSchemaLocation="http://www.sdl.com/xml/SdlExample.xsd"
If you provide a namespace http://www.w3.org/1999/ xhtml, then the SDL file support software will match any XML file that includes <html xmlns="http://www.w3.org/1999/ xhtml">
email postThen both the following XML files will match the new file type:
<email> <sendto>Mary Brown</sendto> </email>
<post> <sendto>John Brown</sendto> </post>
*(that is, an asterisk), any XML document will match this file type. Usually, if you have such a catch-all specification, you would position it at the bottom of the list of XML file types, so that more specific specifications take precedence.