All pastes #1265449 Raw Edit

Convert MIME to XML using PHP-CL

public php v1 · immutable
#1265449 ·published 2008-11-24 00:14 UTC
rendered paste body
<?php	$fp = fopen('media-types.xml', 'w+');		$mime = array(		'application' => array(),		'audio' => array(),		'example' => array(),		'image' => array(),		'message' => array(),		'model' => array(),		'multipart' => array(),		'text' => array(),		'video' => array()	);	if (!defined("STDIN")) {		define("STDIN", fopen("php://stdin", "r"));	}	fwrite($fp, '<media-types>' . "\r\n");	while (!feof(STDIN)) {		echo 'Content-Type: ';		$type = trim(fgets(STDIN));		if (array_key_exists($type, $mime)) {			unset($mime[$type]);			fwrite($fp, "\t" . '<' . $type . '>' . "\r\n");			while (!feof(STDIN)) {				echo 'Subtype: ';				$subtype = trim(fgets(STDIN));				if ($subtype != "") {					fwrite($fp, "\t\t" . '<subtype>' . $subtype . '</subtype>' . "\r\n");					print "\n";				}				else {					break 1;				}			}			fwrite($fp, "\t" . '</' . $type . '>' . "\r\n");			echo "\n";		}		elseif ($type == "") { break 1; }		else {			echo 'Error: Unknown Content-Type entry, try again.' . "\n";		}	}	fwrite($fp, '</media-types>');	fclose($fp);?><media-types>	<application>		<subtype>activemessage</subtype>		<subtype>andrew-inset</subtype>		<subtype>applefile</subtype>		<subtype>atom+xml</subtype>		<subtype>atomicmail</subtype>		<subtype>atomcat+xml</subtype>		<subtype>atomsvc+xml</subtype>		<subtype>auth-policy+xml</subtype>		<subtype>batch-SMTP</subtype>		<subtype>beep+xml</subtype>		<subtype>cals-1840</subtype>		<subtype>ccxml+xml</subtype>		<subtype>cellml+xml</subtype>		<subtype>cnrp+xml</subtype>		<subtype>commonground</subtype>		<subtype>conference-info+xml</subtype>		<subtype>cpl+xml</subtype>		<subtype>csta+xml</subtype>		<subtype>CSTAdata+xml</subtype>		<subtype>cybercash</subtype>		<subtype>davmount+xml</subtype>		<subtype>dca-rft</subtype>		<subtype>dec-dx</subtype>		<subtype>dialog-info+xml</subtype>		<subtype>dicom</subtype>		<subtype>dns</subtype>		<subtype>dvcs</subtype>		<subtype>ecmascript</subtype>		<subtype>EDI-Consent</subtype>		<subtype>EDIFACT</subtype>		<subtype>EDI-X12</subtype>		<subtype>epp+xml</subtype>		<subtype>eshop</subtype>		<subtype>example</subtype>		<subtype>fastinfoset</subtype>		<subtype>fastsoap</subtype>		<subtype>fits</subtype>		<subtype>font-tdpfr</subtype>		<subtype>H224</subtype>		<subtype>http</subtype>		<subtype>hyperstudio</subtype>		<subtype>ibe-key-request+xml</subtype>		<subtype>ibe-pkg-reply+xml</subtype>		<subtype>ibe-pp-data</subtype>		<subtype>iges</subtype>		<subtype>im-iscomposing+xml</subtype>		<subtype>index</subtype>		<subtype>index.cmd</subtype>		<subtype>index.obj</subtype>		<subtype>index.response</subtype>		<subtype>index.vnd</subtype>		<subtype>iotp</subtype>		<subtype>ipp</subtype>		<subtype>isup</subtype>		<subtype>javascript</subtype>		<subtype>json</subtype>		<subtype>kpml-request+xml</subtype>		<subtype>kpml-response+xml</subtype>		<subtype>lost+xml</subtype>		<subtype>mac-binhex40</subtype>		<subtype>macwriteii</subtype>		<subtype>marc</subtype>		<subtype>mathematica</subtype>		<subtype>mbms-associated-procedure-description+xml</subtype>		<subtype>mbms-deregister+xml</subtype>		<subtype>mbms-envelope+xml</subtype>		<subtype>mbms-msk-response+xml</subtype>		<subtype>mbms-msk+xml</subtype>		<subtype>mbms-protection-description+xml</subtype>		<subtype>mbms-reception-report+xml</subtype>		<subtype>mbms-register-response+xml</subtype>		<subtype>mbms-register+xml</subtype>		<subtype>mbms-user-service-description+xml</subtype>		<subtype>mbox</subtype>		<subtype>media_control+xml</subtype>		<subtype>mediaservercontrol+xml</subtype>		<subtype>mikey</subtype>		<subtype>moss-keys</subtype>		<subtype>moss-signature</subtype>		<subtype>mosskey-data</subtype>		<subtype>mosskey-request</subtype>		<subtype>mpeg4-generic</subtype>		<subtype>mpeg4-iod</subtype>		<subtype>mpeg4-iod-xmt</subtype>		<subtype>mp4</subtype>		<subtype>msword</subtype>		<subtype>mxf</subtype>		<subtype>nasdata</subtype>		<subtype>news-transmission</subtype>		<subtype>nss</subtype>		<subtype>ocsp-request</subtype>		<subtype>ocsp-response</subtype>		<subtype>octet-stream</subtype>		<subtype>oda</subtype>		<subtype>oebps-package+xml</subtype>		<subtype>ogg</subtype>		<subtype>parityfec</subtype>		<subtype>patch-ops-error+xml</subtype>		<subtype>pdf</subtype>		<subtype>pgp-encrypted</subtype>		<subtype>pgp-keys</subtype>		<subtype>pgp-signature</subtype>		<subtype>pidf+xml</subtype>		<subtype>pidf-diff+xml</subtype>		<subtype>pkcs10</subtype>		<subtype>pkcs7-mime</subtype>		<subtype>pkcs7-signature</subtype>		<subtype>pkix-cert</subtype>		<subtype>pkixcmp</subtype>		<subtype>pkix-crl</subtype>		<subtype>pkix-pkipath</subtype>		<subtype>pls+xml</subtype>		<subtype>poc-settings+xml</subtype>		<subtype>postscript</subtype>		<subtype>prs.alvestrand.titrax-sheet</subtype>		<subtype>prs.cww</subtype>		<subtype>prs.nprend</subtype>		<subtype>prs.plucker</subtype>		<subtype>rdf+xml</subtype>		<subtype>qsig</subtype>		<subtype>reginfo+xml</subtype>		<subtype>relax-ng-compact-syntax</subtype>		<subtype>remote-printing</subtype>		<subtype>resource-lists-diff+xml</subtype>		<subtype>resource-lists+xml</subtype>		<subtype>riscos</subtype>		<subtype>rlmi+xml</subtype>		<subtype>rls-services+xml</subtype>		<subtype>rtf</subtype>		<subtype>rtx</subtype>		<subtype>samlassertion+xml</subtype>		<subtype>samlmetadata+xml</subtype>		<subtype>sbml+xml</subtype>		<subtype>scvp-cv-request</subtype>		<subtype>scvp-cv-response</subtype>		<subtype>scvp-vp-request</subtype>		<subtype>scvp-vp-response</subtype>		<subtype>sdp</subtype>		<subtype>set-payment</subtype>		<subtype>set-payment-initiation</subtype>		<subtype>set-registration</subtype>		<subtype>set-registration-initiation</subtype>		<subtype>sgml</subtype>		<subtype>sgml-open-catalog</subtype>		<subtype>shf+xml</subtype>		<subtype>sieve</subtype>		<subtype>simple-filter+xml</subtype>		<subtype>simple-message-summary</subtype>		<subtype>simpleSymbolContainer</subtype>		<subtype>slate</subtype>		<subtype>smil(OBSOLETE)</subtype>		<subtype>smil+xml</subtype>		<subtype>soap+fastinfoset</subtype>		<subtype>soap+xml</subtype>		<subtype>sparql-query</subtype>		<subtype>sparql-results+xml</subtype>		<subtype>spirits-event+xml</subtype>		<subtype>srgs</subtype>		<subtype>srgs+xml</subtype>		<subtype>ssml+xml</subtype>		<subtype>timestamp-query</subtype>		<subtype>timestamp-reply</subtype>		<subtype>tve-trigger</subtype>		<subtype>ulpfec</subtype>		<subtype>vemmi</subtype>		<subtype>vnd.3gpp.bsf+xml</subtype>		<subtype>vnd.3gpp.pic-bw-large</subtype>		<subtype>vnd.3gpp.pic-bw-small</subtype>		<subtype>vnd.3gpp.pic-bw-var</subtype>		<subtype>vnd.3gpp.sms</subtype>		<subtype>vnd.3gpp2.bcmcsinfo+xml</subtype>		<subtype>vnd.3gpp2.sms</subtype>		<subtype>vnd.3gpp2.tcap</subtype>		<subtype>vnd.3M.Post-it-Notes</subtype>		<subtype>vnd.accpac.simply.aso</subtype>		<subtype>vnd.accpac.simply.imp</subtype>		<subtype>vnd.acucobol</subtype>		<subtype>vnd.acucorp</subtype>		<subtype>vnd.adobe.xdp+xml</subtype>		<subtype>vnd.adobe.xfdf</subtype>		<subtype>vnd.aether.imp</subtype>		<subtype>vnd.americandynamics.acc</subtype>		<subtype>vnd.amiga.ami</subtype>		<subtype>vnd.anser-web-certificate-issue-initiation</subtype>		<subtype>vnd.antix.game-component</subtype>		<subtype>vnd.apple.installer+xml</subtype>		<subtype>vnd.arastra.swi</subtype>		<subtype>vnd.audiograph</subtype>		<subtype>vnd.autopackage</subtype>		<subtype>vnd.avistar+xml</subtype>		<subtype>vnd.blueice.multipass</subtype>		<subtype>vnd.bmi</subtype>		<subtype>vnd.businessobjects</subtype>		<subtype>vnd.cab-jscript</subtype>		<subtype>vnd.canon-cpdl</subtype>		<subtype>vnd.canon-lips</subtype>		<subtype>vnd.cendio.thinlinc.clientconf</subtype>		<subtype>vnd.chemdraw+xml</subtype>		<subtype>vnd.chipnuts.karaoke-mmd</subtype>		<subtype>vnd.cinderella</subtype>		<subtype>vnd.cirpack.isdn-ext</subtype>		<subtype>vnd.claymore</subtype>		<subtype>vnd.clonk.c4group</subtype>		<subtype>vnd.commerce-battelle</subtype>		<subtype>vnd.commonspace</subtype>		<subtype>vnd.cosmocaller</subtype>		<subtype>vnd.contact.cmsg</subtype>		<subtype>vnd.crick.clicker</subtype>		<subtype>vnd.crick.clicker.keyboard</subtype>		<subtype>vnd.crick.clicker.palette</subtype>		<subtype>vnd.crick.clicker.template</subtype>		<subtype>vnd.crick.clicker.wordbank</subtype>		<subtype>vnd.criticaltools.wbs+xml</subtype>		<subtype>vnd.ctc-posml</subtype>		<subtype>vnd.ctct.ws+xml</subtype>		<subtype>vnd.cups-pdf</subtype>		<subtype>vnd.cups-postscript</subtype>		<subtype>vnd.cups-ppd</subtype>		<subtype>vnd.cups-raster</subtype>		<subtype>vnd.cups-raw</subtype>		<subtype>vnd.curl</subtype>		<subtype>vnd.cybank</subtype>		<subtype>vnd.data-vision.rdz</subtype>		<subtype>vnd.denovo.fcselayout-link</subtype>		<subtype>vnd.dna</subtype>		<subtype>vnd.dpgraph</subtype>		<subtype>vnd.dreamfactory</subtype>		<subtype>vnd.dvb.esgcontainer</subtype>		<subtype>vnd.dvb.ipdcesgaccess</subtype>		<subtype>vnd.dvb.iptv.alfec-base</subtype>		<subtype>vnd.dvb.iptv.alfec-enhancement</subtype>		<subtype>vnd.dxr</subtype>		<subtype>vnd.ecdis-update</subtype>		<subtype>vnd.ecowin.chart</subtype>		<subtype>vnd.ecowin.filerequest</subtype>		<subtype>vnd.ecowin.fileupdate</subtype>		<subtype>vnd.ecowin.series</subtype>		<subtype>vnd.ecowin.seriesrequest</subtype>		<subtype>vnd.ecowin.seriesupdate</subtype>		<subtype>vnd.enliven</subtype>		<subtype>vnd.epson.esf</subtype>		<subtype>vnd.epson.msf</subtype>		<subtype>vnd.epson.quickanime</subtype>		<subtype>vnd.epson.salt</subtype>		<subtype>vnd.epson.ssf</subtype>		<subtype>vnd.ericsson.quickcall</subtype>		<subtype>vnd.eszigno3+xml</subtype>		<subtype>vnd.eudora.data</subtype>		<subtype>vnd.ezpix-album</subtype>		<subtype>vnd.ezpix-package</subtype>		<subtype>vnd.f-secure.mobile</subtype>		<subtype>vnd.fdf</subtype>		<subtype>vnd.ffsns</subtype>		<subtype>vnd.fints</subtype>		<subtype>vnd.FloGraphIt</subtype>		<subtype>vnd.fluxtime.clip</subtype>		<subtype>vnd.font-fontforge-sfd</subtype>		<subtype>vnd.framemaker</subtype>		<subtype>vnd.frogans.fnc</subtype>		<subtype>vnd.frogans.ltf</subtype>		<subtype>vnd.fsc.weblaunch</subtype>		<subtype>vnd.fujitsu.oasys</subtype>		<subtype>vnd.fujitsu.oasys2</subtype>		<subtype>vnd.fujitsu.oasys3</subtype>		<subtype>vnd.fujitsu.oasysgp</subtype>		<subtype>vnd.fujitsu.oasysprs</subtype>		<subtype>vnd.fujixerox.ART4</subtype>		<subtype>vnd.fujixerox.ART-EX</subtype>		<subtype>vnd.fujixerox.ddd</subtype>		<subtype>vnd.fujixerox.docuworks</subtype>		<subtype>vnd.fujixerox.docuworks.binder</subtype>		<subtype>vnd.fujixerox.HBPL</subtype>		<subtype>vnd.fut-misnet</subtype>		<subtype>vnd.fuzzysheet</subtype>		<subtype>vnd.genomatix.tuxedo</subtype>		<subtype>vnd.gmx</subtype>		<subtype>vnd.google-earth.kml+xml</subtype>		<subtype>vnd.google-earth.kmz</subtype>		<subtype>vnd.grafeq</subtype>		<subtype>vnd.gridmp</subtype>		<subtype>vnd.groove-account</subtype>		<subtype>vnd.groove-help</subtype>		<subtype>vnd.groove-identity-message</subtype>		<subtype>vnd.groove-injector</subtype>		<subtype>vnd.groove-tool-message</subtype>		<subtype>vnd.groove-tool-template</subtype>		<subtype>vnd.groove-vcard</subtype>		<subtype>vnd.HandHeld-Entertainment+xml</subtype>		<subtype>vnd.hbci</subtype>		<subtype>vnd.hcl-bireports</subtype>		<subtype>vnd.hhe.lesson-player</subtype>		<subtype>vnd.hp-HPGL</subtype>		<subtype>vnd.hp-hpid</subtype>		<subtype>vnd.hp-hps</subtype>		<subtype>vnd.hp-jlyt</subtype>		<subtype>vnd.hp-PCL</subtype>		<subtype>vnd.hp-PCLXL</subtype>		<subtype>vnd.httphone</subtype>		<subtype>vnd.hydrostatix.sof-data</subtype>		<subtype>vnd.hzn-3d-crossword</subtype>		<subtype>vnd.ibm.afplinedata</subtype>		<subtype>vnd.ibm.electronic-media</subtype>		<subtype>vnd.ibm.MiniPay</subtype>		<subtype>vnd.ibm.modcap</subtype>		<subtype>vnd.ibm.rights-management</subtype>		<subtype>vnd.ibm.secure-container</subtype>		<subtype>vnd.iccprofile</subtype>		<subtype>vnd.igloader</subtype>		<subtype>vnd.immervision-ivp</subtype>		<subtype>vnd.immervision-ivu</subtype>		<subtype>vnd.informedcontrol.rms+xml</subtype>		<subtype>vnd.informix-visionary</subtype>		<subtype>vnd.intercon.formnet</subtype>		<subtype>vnd.intertrust.digibox</subtype>		<subtype>vnd.intertrust.nncp</subtype>		<subtype>vnd.intu.qbo</subtype>		<subtype>vnd.intu.qfx</subtype>		<subtype>vnd.iptc.g2.conceptitem+xml</subtype>		<subtype>vnd.iptc.g2.knowledgeitem+xml</subtype>		<subtype>vnd.iptc.g2.newsitem+xml</subtype>		<subtype>vnd.iptc.g2.packageitem+xml</subtype>		<subtype>vnd.ipunplugged.rcprofile</subtype>		<subtype>vnd.irepository.package+xml</subtype>		<subtype>vnd.is-xpr</subtype>		<subtype>vnd.jam</subtype>		<subtype>vnd.japannet-directory-service</subtype>		<subtype>vnd.japannet-jpnstore-wakeup</subtype>		<subtype>vnd.japannet-payment-wakeup</subtype>		<subtype>vnd.japannet-registration</subtype>		<subtype>vnd.japannet-registration-wakeup</subtype>		<subtype>vnd.japannet-setstore-wakeup</subtype>		<subtype>vnd.japannet-verification</subtype>		<subtype>vnd.japannet-verification-wakeup</subtype>		<subtype>vnd.jcp.javame.midlet-rms</subtype>		<subtype>vnd.jisp</subtype>		<subtype>vnd.joost.joda-archive</subtype>		<subtype>vnd.kahootz</subtype>		<subtype>vnd.kde.karbon</subtype>		<subtype>vnd.kde.kchart</subtype>		<subtype>vnd.kde.kformula</subtype>		<subtype>vnd.kde.kivio</subtype>		<subtype>vnd.kde.kontour</subtype>		<subtype>vnd.kde.kpresenter</subtype>		<subtype>vnd.kde.kspread</subtype>		<subtype>vnd.kde.kword</subtype>		<subtype>vnd.kenameaapp</subtype>		<subtype>vnd.kidspiration</subtype>		<subtype>vnd.Kinar</subtype>		<subtype>vnd.koan</subtype>		<subtype>vnd.kodak-descriptor</subtype>		<subtype>vnd.liberty-request+xml</subtype>		<subtype>vnd.llamagraphics.life-balance.desktop</subtype>		<subtype>vnd.llamagraphics.life-balance.exchange+xml</subtype>		<subtype>vnd.lotus-1-2-3</subtype>		<subtype>vnd.lotus-approach</subtype>		<subtype>vnd.lotus-freelance</subtype>		<subtype>vnd.lotus-notes</subtype>		<subtype>vnd.lotus-organizer</subtype>		<subtype>vnd.lotus-screencam</subtype>		<subtype>vnd.lotus-wordpro</subtype>		<subtype>vnd.macports.portpkg</subtype>		<subtype>vnd.marlin.drm.actiontoken+xml</subtype>		<subtype>vnd.marlin.drm.conftoken+xml</subtype>		<subtype>vnd.marlin.drm.license+xml</subtype>		<subtype>vnd.marlin.drm.mdcf</subtype>		<subtype>vnd.mcd</subtype>		<subtype>vnd.medcalcdata</subtype>		<subtype>vnd.mediastation.cdkey</subtype>		<subtype>vnd.meridian-slingshot</subtype>		<subtype>vnd.MFER</subtype>		<subtype>vnd.mfmp</subtype>		<subtype>vnd.micrografx.flo</subtype>		<subtype>vnd.micrografx.igx</subtype>		<subtype>vnd.mif</subtype>		<subtype>vnd.minisoft-hp3000-save</subtype>		<subtype>vnd.mitsubishi.misty-guard.trustweb</subtype>		<subtype>vnd.Mobius.DAF</subtype>		<subtype>vnd.Mobius.DIS</subtype>		<subtype>vnd.Mobius.MBK</subtype>		<subtype>vnd.Mobius.MQY</subtype>		<subtype>vnd.Mobius.MSL</subtype>		<subtype>vnd.Mobius.PLC</subtype>		<subtype>vnd.Mobius.TXF</subtype>		<subtype>vnd.mophun.application</subtype>		<subtype>vnd.mophun.certificate</subtype>		<subtype>vnd.motorola.flexsuite</subtype>		<subtype>vnd.motorola.flexsuite.adsi</subtype>		<subtype>vnd.motorola.flexsuite.fis</subtype>		<subtype>vnd.motorola.flexsuite.gotap</subtype>		<subtype>vnd.motorola.flexsuite.kmr</subtype>		<subtype>vnd.motorola.flexsuite.ttc</subtype>		<subtype>vnd.motorola.flexsuite.wem</subtype>		<subtype>vnd.motorola.iprm</subtype>		<subtype>vnd.mozilla.xul+xml</subtype>		<subtype>vnd.ms-artgalry</subtype>		<subtype>vnd.ms-asf</subtype>		<subtype>vnd.ms-cab-compressed</subtype>		<subtype>vnd.mseq</subtype>		<subtype>vnd.ms-excel</subtype>		<subtype>vnd.ms-fontobject</subtype>		<subtype>vnd.ms-htmlhelp</subtype>		<subtype>vnd.msign</subtype>		<subtype>vnd.ms-ims</subtype>		<subtype>vnd.ms-lrm</subtype>		<subtype>vnd.ms-playready.initiator+xml</subtype>		<subtype>vnd.ms-powerpoint</subtype>		<subtype>vnd.ms-project</subtype>		<subtype>vnd.ms-tnef</subtype>		<subtype>vnd.ms-wmdrm.lic-chlg-req</subtype>		<subtype>vnd.ms-wmdrm.lic-resp</subtype>		<subtype>vnd.ms-wmdrm.meter-chlg-req</subtype>		<subtype>vnd.ms-wmdrm.meter-resp</subtype>		<subtype>vnd.ms-works</subtype>		<subtype>vnd.ms-wpl</subtype>		<subtype>vnd.ms-xpsdocument</subtype>		<subtype>vnd.multiad.creator</subtype>		<subtype>vnd.multiad.creator.cif</subtype>		<subtype>vnd.musician</subtype>		<subtype>vnd.music-niff</subtype>		<subtype>vnd.muvee.style</subtype>		<subtype>vnd.ncd.control</subtype>		<subtype>vnd.ncd.reference</subtype>		<subtype>vnd.nervana</subtype>		<subtype>vnd.netfpx</subtype>		<subtype>vnd.neurolanguage.nlu</subtype>		<subtype>vnd.noblenet-directory</subtype>		<subtype>vnd.noblenet-sealer</subtype>		<subtype>vnd.noblenet-web</subtype>		<subtype>vnd.nokia.catalogs</subtype>		<subtype>vnd.nokia.conml+wbxml</subtype>		<subtype>vnd.nokia.conml+xml</subtype>		<subtype>vnd.nokia.iptv.config+xml</subtype>		<subtype>vnd.nokia.iSDS-radio-presets</subtype>		<subtype>vnd.nokia.landmark+wbxml</subtype>		<subtype>vnd.nokia.landmark+xml</subtype>		<subtype>vnd.nokia.landmarkcollection+xml</subtype>		<subtype>vnd.nokia.ncd</subtype>		<subtype>vnd.nokia.n-gage.ac+xml</subtype>		<subtype>vnd.nokia.n-gage.data</subtype>		<subtype>vnd.nokia.n-gage.symbian.install</subtype>		<subtype>vnd.nokia.pcd+wbxml</subtype>		<subtype>vnd.nokia.pcd+xml</subtype>		<subtype>vnd.nokia.radio-preset</subtype>		<subtype>vnd.nokia.radio-presets</subtype>		<subtype>vnd.novadigm.EDM</subtype>		<subtype>vnd.novadigm.EDX</subtype>		<subtype>vnd.novadigm.EXT</subtype>		<subtype>vnd.oasis.opendocument.chart</subtype>		<subtype>vnd.oasis.opendocument.chart-template</subtype>		<subtype>vnd.oasis.opendocument.formula</subtype>		<subtype>vnd.oasis.opendocument.formula-template</subtype>		<subtype>vnd.oasis.opendocument.graphics</subtype>		<subtype>vnd.oasis.opendocument.graphics-template</subtype>		<subtype>vnd.oasis.opendocument.image</subtype>		<subtype>vnd.oasis.opendocument.image-template</subtype>		<subtype>vnd.oasis.opendocument.presentation</subtype>		<subtype>vnd.oasis.opendocument.presentation-template</subtype>		<subtype>vnd.oasis.opendocument.spreadsheet</subtype>		<subtype>vnd.oasis.opendocument.spreadsheet-template</subtype>		<subtype>vnd.oasis.opendocument.text</subtype>		<subtype>vnd.oasis.opendocument.text-master</subtype>		<subtype>vnd.oasis.opendocument.text-template</subtype>		<subtype>vnd.oasis.opendocument.text-web</subtype>		<subtype>vnd.obn</subtype>		<subtype>vnd.olpc-sugar</subtype>		<subtype>vnd.oma.bcast.associated-procedure-parameter+xml</subtype>		<subtype>vnd.oma.bcast.drm-trigger+xml</subtype>		<subtype>vnd.oma.bcast.imd+xml</subtype>		<subtype>vnd.oma.bcast.ltkm</subtype>		<subtype>vnd.oma.bcast.notification+xml</subtype>		<subtype>vnd.oma.bcast.provisioningtrigger</subtype>		<subtype>vnd.oma.bcast.sgboot</subtype>		<subtype>vnd.oma.bcast.sgdd+xml</subtype>		<subtype>vnd.oma.bcast.sgdu</subtype>		<subtype>vnd.oma.bcast.simple-symbol-container</subtype>		<subtype>vnd.oma.bcast.smartcard-trigger+xml</subtype>		<subtype>vnd.oma.bcast.sprov+xml</subtype>		<subtype>vnd.oma.bcast.stkm</subtype>		<subtype>vnd.oma.dcd</subtype>		<subtype>vnd.oma.dcdc</subtype>		<subtype>vnd.oma.dd2+xml</subtype>		<subtype>vnd.oma.drm.risd+xml</subtype>		<subtype>vnd.oma.group-usage-list+xml</subtype>		<subtype>vnd.oma.poc.detailed-progress-report+xml</subtype>		<subtype>vnd.oma.poc.final-report+xml</subtype>		<subtype>vnd.oma.poc.groups+xml</subtype>		<subtype>vnd.oma.poc.invocation-descriptor+xml</subtype>		<subtype>vnd.oma.poc.optimized-progress-report+xml</subtype>		<subtype>vnd.oma.xcap-directory+xml</subtype>		<subtype>vnd.omads-email+xml</subtype>		<subtype>vnd.omads-file+xml</subtype>		<subtype>vnd.omads-folder+xml</subtype>		<subtype>vnd.omaloc-supl-init</subtype>		<subtype>vnd.oma-scws-config</subtype>		<subtype>vnd.oma-scws-http-request</subtype>		<subtype>vnd.oma-scws-http-response</subtype>		<subtype>vnd.openofficeorg.extension</subtype>		<subtype>vnd.osa.netdeploy</subtype>		<subtype>vnd.osgi.bundle</subtype>		<subtype>vnd.osgi.dp</subtype>		<subtype>vnd.otps.ct-kip+xml</subtype>		<subtype>vnd.palm</subtype>		<subtype>vnd.paos.xml</subtype>		<subtype>vnd.pg.format</subtype>		<subtype>vnd.pg.osasli</subtype>		<subtype>vnd.piaccess.application-licence</subtype>		<subtype>vnd.picsel</subtype>		<subtype>vnd.poc.group-advertisement+xml</subtype>		<subtype>vnd.pocketlearn</subtype>		<subtype>vnd.powerbuilder6</subtype>		<subtype>vnd.powerbuilder6-s</subtype>		<subtype>vnd.powerbuilder7</subtype>		<subtype>vnd.powerbuilder75</subtype>		<subtype>vnd.powerbuilder75-s</subtype>		<subtype>vnd.powerbuilder7-s</subtype>		<subtype>vnd.preminet</subtype>		<subtype>vnd.previewsystems.box</subtype>		<subtype>vnd.proteus.magazine</subtype>		<subtype>vnd.publishare-delta-tree</subtype>		<subtype>vnd.pvi.ptid1</subtype>		<subtype>vnd.pwg-multiplexed</subtype>		<subtype>vnd.pwg-xhtml-print+xml</subtype>		<subtype>vnd.qualcomm.brew-app-res</subtype>		<subtype>vnd.Quark.QuarkXPress</subtype>		<subtype>vnd.rapid</subtype>		<subtype>vnd.recordare.musicxml</subtype>		<subtype>vnd.recordare.musicxml+xml</subtype>		<subtype>vnd.RenLearn.rlprint</subtype>		<subtype>vnd.route66.link66+xml</subtype>		<subtype>vnd.ruckus.download</subtype>		<subtype>vnd.s3sms</subtype>		<subtype>vnd.sbm.cid</subtype>		<subtype>vnd.sbm.mid2</subtype>		<subtype>vnd.scribus</subtype>		<subtype>vnd.sealed.3df</subtype>		<subtype>vnd.sealed.csf</subtype>		<subtype>vnd.sealed.doc</subtype>		<subtype>vnd.sealed.eml</subtype>		<subtype>vnd.sealed.mht</subtype>		<subtype>vnd.sealed.net</subtype>		<subtype>vnd.sealed.ppt</subtype>		<subtype>vnd.sealed.tiff</subtype>		<subtype>vnd.sealed.xls</subtype>		<subtype>vnd.sealedmedia.softseal.html</subtype>		<subtype>vnd.sealedmedia.softseal.pdf</subtype>		<subtype>vnd.seemail</subtype>		<subtype>vnd.sema</subtype>		<subtype>vnd.semd</subtype>		<subtype>vnd.semf</subtype>		<subtype>vnd.shana.informed.formdata</subtype>		<subtype>vnd.shana.informed.formtemplate</subtype>		<subtype>vnd.shana.informed.interchange</subtype>		<subtype>vnd.shana.informed.package</subtype>		<subtype>vnd.SimTech-MindMapper</subtype>		<subtype>vnd.smaf</subtype>		<subtype>vnd.software602.filler.form+xml</subtype>		<subtype>vnd.software602.filler.form-xml-zip</subtype>		<subtype>vnd.solent.sdkm+xml</subtype>		<subtype>vnd.spotfire.dxp</subtype>		<subtype>vnd.spotfire.sfs</subtype>		<subtype>vnd.sss-cod</subtype>		<subtype>vnd.sss-dtf</subtype>		<subtype>vnd.sss-ntf</subtype>		<subtype>vnd.street-stream</subtype>		<subtype>vnd.sun.wadl+xml</subtype>		<subtype>vnd.sus-calendar</subtype>		<subtype>vnd.svd</subtype>		<subtype>vnd.swiftview-ics</subtype>		<subtype>vnd.syncml.dm+wbxml</subtype>		<subtype>vnd.syncml.dm+xml</subtype>		<subtype>vnd.syncml.ds.notification</subtype>		<subtype>vnd.syncml+xml</subtype>		<subtype>vnd.tao.intent-module-archive</subtype>		<subtype>vnd.tmobile-livetv</subtype>		<subtype>vnd.trid.tpt</subtype>		<subtype>vnd.triscape.mxs</subtype>		<subtype>vnd.trueapp</subtype>		<subtype>vnd.truedoc</subtype>		<subtype>vnd.ufdl</subtype>		<subtype>vnd.uiq.theme</subtype>		<subtype>vnd.umajin</subtype>		<subtype>vnd.unity</subtype>		<subtype>vnd.uoml+xml</subtype>		<subtype>vnd.uplanet.alert</subtype>		<subtype>vnd.uplanet.alert-wbxml</subtype>		<subtype>vnd.uplanet.bearer-choice</subtype>		<subtype>vnd.uplanet.bearer-choice-wbxml</subtype>		<subtype>vnd.uplanet.cacheop</subtype>		<subtype>vnd.uplanet.cacheop-wbxml</subtype>		<subtype>vnd.uplanet.channel</subtype>		<subtype>vnd.uplanet.channel-wbxml</subtype>		<subtype>vnd.uplanet.list</subtype>		<subtype>vnd.uplanet.listcmd</subtype>		<subtype>vnd.uplanet.listcmd-wbxml</subtype>		<subtype>vnd.uplanet.list-wbxml</subtype>		<subtype>vnd.uplanet.signal</subtype>		<subtype>vnd.vcx</subtype>		<subtype>vnd.vd-study</subtype>		<subtype>vnd.vectorworks</subtype>		<subtype>vnd.vidsoft.vidconference</subtype>		<subtype>vnd.visio</subtype>		<subtype>vnd.visionary</subtype>		<subtype>vnd.vividence.scriptfile</subtype>		<subtype>vnd.vsf</subtype>		<subtype>vnd.wap.sic</subtype>		<subtype>vnd.wap.slc</subtype>		<subtype>vnd.wap.wbxml</subtype>		<subtype>vnd.wap.wmlc</subtype>		<subtype>vnd.wap.wmlscriptc</subtype>		<subtype>vnd.webturbo</subtype>		<subtype>vnd.wfa.wsc</subtype>		<subtype>vnd.wmc</subtype>		<subtype>vnd.wmf.bootstrap</subtype>		<subtype>vnd.wordperfect</subtype>		<subtype>vnd.wqd</subtype>		<subtype>vnd.wrq-hp3000-labelled</subtype>		<subtype>vnd.wt.stf</subtype>		<subtype>vnd.wv.csp+xml</subtype>		<subtype>vnd.wv.csp+wbxml</subtype>		<subtype>vnd.wv.ssp+xml</subtype>		<subtype>vnd.xara</subtype>		<subtype>vnd.xfdl</subtype>		<subtype>vnd.xmi+xml</subtype>		<subtype>vnd.xmpie.cpkg</subtype>		<subtype>vnd.xmpie.dpkg</subtype>		<subtype>vnd.xmpie.plan</subtype>		<subtype>vnd.xmpie.ppkg</subtype>		<subtype>vnd.xmpie.xlim</subtype>		<subtype>vnd.yamaha.hv-dic</subtype>		<subtype>vnd.yamaha.hv-script</subtype>		<subtype>vnd.yamaha.hv-voice</subtype>		<subtype>vnd.yamaha.smaf-audio</subtype>		<subtype>vnd.yamaha.smaf-phrase</subtype>		<subtype>vnd.yellowriver-custom-menu</subtype>		<subtype>vnd.zzazz.deck+xml</subtype>		<subtype>voicexml+xml</subtype>		<subtype>watcherinfo+xml</subtype>		<subtype>whoispp-query</subtype>		<subtype>whoispp-response</subtype>		<subtype>wita</subtype>		<subtype>wordperfect5.1</subtype>		<subtype>wsdl+xml</subtype>		<subtype>wspolicy+xml</subtype>		<subtype>x400-bp</subtype>		<subtype>xcap-att+xml</subtype>		<subtype>xcap-caps+xml</subtype>		<subtype>xcap-el+xml</subtype>		<subtype>xcap-error+xml</subtype>		<subtype>xcap-ns+xml</subtype>		<subtype>xenc+xml</subtype>		<subtype>xhtml-voice+xml(Obsolete)</subtype>		<subtype>xhtml+xml</subtype>		<subtype>xml</subtype>		<subtype>xml-dtd</subtype>		<subtype>xml-external-parsed-entity</subtype>		<subtype>xmpp+xml</subtype>		<subtype>xop+xml</subtype>		<subtype>xv+xml</subtype>		<subtype>zip</subtype>	</application>	<audio>		<subtype>32kadpcm</subtype>		<subtype>3gpp</subtype>		<subtype>3gpp2</subtype>		<subtype>ac3</subtype>		<subtype>AMR</subtype>		<subtype>AMR-WB</subtype>		<subtype>amr-wb+</subtype>		<subtype>asc</subtype>		<subtype>basic</subtype>		<subtype>BV16</subtype>		<subtype>BV32</subtype>		<subtype>clearmode</subtype>		<subtype>CN</subtype>		<subtype>DAT12</subtype>		<subtype>dls</subtype>		<subtype>dsr-es201108</subtype>		<subtype>dsr-es202050</subtype>		<subtype>dsr-es202211</subtype>		<subtype>dsr-es202212</subtype>		<subtype>eac3</subtype>		<subtype>DVI4</subtype>		<subtype>EVRC</subtype>		<subtype>EVRC0</subtype>		<subtype>EVRC1</subtype>		<subtype>EVRCB</subtype>		<subtype>EVRCB0</subtype>		<subtype>EVRCB1</subtype>		<subtype>EVRC-QCP</subtype>		<subtype>EVRCWB</subtype>		<subtype>EVRCWB0</subtype>		<subtype>EVRCWB1</subtype>		<subtype>example</subtype>		<subtype>G722</subtype>		<subtype>G7221</subtype>		<subtype>G723</subtype>		<subtype>G726-16</subtype>		<subtype>G726-24</subtype>		<subtype>G726-32</subtype>		<subtype>G726-40</subtype>		<subtype>G728</subtype>		<subtype>G729</subtype>		<subtype>G7291</subtype>		<subtype>G729D</subtype>		<subtype>G729E</subtype>		<subtype>GSM</subtype>		<subtype>GSM-EFR</subtype>		<subtype>iLBC</subtype>		<subtype>L8</subtype>		<subtype>L16</subtype>		<subtype>L20</subtype>		<subtype>L24</subtype>		<subtype>LPC</subtype>		<subtype>mobile-xmf</subtype>		<subtype>MPA</subtype>		<subtype>mp4</subtype>		<subtype>MP4A-LATM</subtype>		<subtype>mpa-robust</subtype>		<subtype>mpeg</subtype>		<subtype>mpeg4-generic</subtype>		<subtype>ogg</subtype>		<subtype>parityfec</subtype>		<subtype>PCMA</subtype>		<subtype>PCMA-WB</subtype>		<subtype>PCMU</subtype>		<subtype>PCMU-WB</subtype>		<subtype>prs.sid</subtype>		<subtype>QCELP</subtype>		<subtype>RED</subtype>		<subtype>rtp-enc-aescm128</subtype>		<subtype>rtp-midi</subtype>		<subtype>rtx</subtype>		<subtype>SMV</subtype>		<subtype>SMV0</subtype>		<subtype>SMV-QCP</subtype>		<subtype>sp-midi</subtype>		<subtype>t140c</subtype>		<subtype>t38</subtype>		<subtype>telephone-event</subtype>		<subtype>tone</subtype>		<subtype>ulpfec</subtype>		<subtype>VDVI</subtype>		<subtype>VMR-WB</subtype>		<subtype>vnd.3gpp.iufp</subtype>		<subtype>vnd.4SB</subtype>		<subtype>vnd.audiokoz</subtype>		<subtype>vnd.CELP</subtype>		<subtype>vnd.cisco.nse</subtype>		<subtype>vnd.cmles.radio-events</subtype>		<subtype>vnd.cns.anp1</subtype>		<subtype>vnd.cns.inf1</subtype>		<subtype>vnd.digital-winds</subtype>		<subtype>vnd.dlna.adts</subtype>		<subtype>vnd.dolby.mlp</subtype>		<subtype>vnd.dts</subtype>		<subtype>vnd.dts.hd</subtype>		<subtype>vnd.everad.plj</subtype>		<subtype>vnd.hns.audio</subtype>		<subtype>vnd.lucent.voice</subtype>		<subtype>vnd.ms-playready.media.pya</subtype>		<subtype>vnd.nokia.mobile-xmf</subtype>		<subtype>vnd.nortel.vbk</subtype>		<subtype>vnd.nuera.ecelp4800</subtype>		<subtype>vnd.nuera.ecelp7470</subtype>		<subtype>vnd.nuera.ecelp9600</subtype>		<subtype>vnd.octel.sbc</subtype>		<subtype>vnd.qcelp-DEPRECATED-Pleaseuseaudio/qcelp</subtype>		<subtype>vnd.rhetorex.32kadpcm</subtype>		<subtype>vnd.sealedmedia.softseal.mpeg</subtype>		<subtype>vnd.vmx.cvsd</subtype>		<subtype>vorbis</subtype>		<subtype>vorbis-config</subtype>	</audio>	<image>		<subtype>cgm</subtype>		<subtype>example</subtype>		<subtype>fits</subtype>		<subtype>g3fax</subtype>		<subtype>gif</subtype>		<subtype>ief</subtype>		<subtype>jp2</subtype>		<subtype>jpeg</subtype>		<subtype>jpm</subtype>		<subtype>jpx</subtype>		<subtype>naplps</subtype>		<subtype>png</subtype>		<subtype>prs.btif</subtype>		<subtype>prs.pti</subtype>		<subtype>t38</subtype>		<subtype>tiff</subtype>		<subtype>tiff-fx</subtype>		<subtype>vnd.adobe.photoshop</subtype>		<subtype>vnd.cns.inf2</subtype>		<subtype>vnd.djvu</subtype>		<subtype>vnd.dwg</subtype>		<subtype>vnd.dxf</subtype>		<subtype>vnd.fastbidsheet</subtype>		<subtype>vnd.fpx</subtype>		<subtype>vnd.fst</subtype>		<subtype>vnd.fujixerox.edmics-mmr</subtype>		<subtype>vnd.fujixerox.edmics-rlc</subtype>		<subtype>vnd.globalgraphics.pgb</subtype>		<subtype>vnd.microsoft.icon</subtype>		<subtype>vnd.mix</subtype>		<subtype>vnd.ms-modi</subtype>		<subtype>vnd.net-fpx</subtype>		<subtype>vnd.sealed.png</subtype>		<subtype>vnd.sealedmedia.softseal.gif</subtype>		<subtype>vnd.sealedmedia.softseal.jpg</subtype>		<subtype>vnd.svf</subtype>		<subtype>vnd.wap.wbmp</subtype>		<subtype>vnd.xiff</subtype>	</image>	<message>		<subtype>CPIM</subtype>		<subtype>delivery-status</subtype>		<subtype>disposition-notification</subtype>		<subtype>example</subtype>		<subtype>external-body</subtype>		<subtype>global</subtype>		<subtype>global-delivery-status</subtype>		<subtype>global-disposition-notification</subtype>		<subtype>global-headers</subtype>		<subtype>http</subtype>		<subtype>news</subtype>		<subtype>partial</subtype>		<subtype>rfc822</subtype>		<subtype>s-http</subtype>		<subtype>sip</subtype>		<subtype>sipfrag</subtype>		<subtype>tracking-status</subtype>		<subtype>vnd.si.simp</subtype>	</message>	<model>		<subtype>example</subtype>		<subtype>iges</subtype>		<subtype>mesh</subtype>		<subtype>vnd.dwf</subtype>		<subtype>vnd.flatland.3dml</subtype>		<subtype>vnd.gdl</subtype>		<subtype>vnd.gs-gdl</subtype>		<subtype>vnd.gtw</subtype>		<subtype>vnd.moml+xml</subtype>		<subtype>vnd.mts</subtype>		<subtype>vnd.parasolid.transmit.binary</subtype>		<subtype>vnd.parasolid.transmit.text</subtype>		<subtype>vnd.vtu</subtype>		<subtype>vrml</subtype>	</model>	<text>		<subtype>calendar</subtype>		<subtype>css</subtype>		<subtype>csv</subtype>		<subtype>directory</subtype>		<subtype>dns</subtype>		<subtype>ecmascript(obsolete)</subtype>		<subtype>enriched</subtype>		<subtype>example</subtype>		<subtype>html</subtype>		<subtype>javascript(obsolete)</subtype>		<subtype>parityfec</subtype>		<subtype>plain</subtype>		<subtype>prs.fallenstein.rst</subtype>		<subtype>prs.lines.tag</subtype>		<subtype>RED</subtype>		<subtype>rfc822-headers</subtype>		<subtype>richtext</subtype>		<subtype>rtf</subtype>		<subtype>rtp-enc-aescm128</subtype>		<subtype>rtx</subtype>		<subtype>sgml</subtype>		<subtype>t140</subtype>		<subtype>tab-separated-values</subtype>		<subtype>troff</subtype>		<subtype>ulpfec</subtype>		<subtype>uri-list</subtype>		<subtype>vnd.abc</subtype>		<subtype>vnd.curl</subtype>		<subtype>vnd.DMClientScript</subtype>		<subtype>vnd.esmertec.theme-descriptor</subtype>		<subtype>vnd.fly</subtype>		<subtype>vnd.fmi.flexstor</subtype>		<subtype>vnd.graphviz</subtype>		<subtype>vnd.in3d.3dml</subtype>		<subtype>vnd.in3d.spot</subtype>		<subtype>vnd.IPTC.NewsML</subtype>		<subtype>vnd.IPTC.NITF</subtype>		<subtype>vnd.latex-z</subtype>		<subtype>vnd.motorola.reflex</subtype>		<subtype>vnd.ms-mediapackage</subtype>		<subtype>vnd.net2phone.commcenter.command</subtype>		<subtype>vnd.si.uricatalogue</subtype>		<subtype>vnd.sun.j2me.app-descriptor</subtype>		<subtype>vnd.trolltech.linguist</subtype>		<subtype>vnd.wap.si</subtype>		<subtype>vnd.wap.sl</subtype>		<subtype>vnd.wap.wml</subtype>		<subtype>vnd.wap.wmlscript</subtype>		<subtype>xml</subtype>		<subtype>xml-external-parsed-entity</subtype>	</text>	<video>		<subtype>3gpp</subtype>		<subtype>3gpp2</subtype>		<subtype>3gpp-tt</subtype>		<subtype>BMPEG</subtype>		<subtype>BT656</subtype>		<subtype>CelB</subtype>		<subtype>DV</subtype>		<subtype>example</subtype>		<subtype>H261</subtype>		<subtype>H263</subtype>		<subtype>H263-1998</subtype>		<subtype>H263-2000</subtype>		<subtype>H264</subtype>		<subtype>JPEG</subtype>		<subtype>jpeg2000</subtype>		<subtype>MJ2</subtype>		<subtype>MP1S</subtype>		<subtype>MP2P</subtype>		<subtype>MP2T</subtype>		<subtype>mp4</subtype>		<subtype>MP4V-ES</subtype>		<subtype>MPV</subtype>		<subtype>mpeg</subtype>		<subtype>mpeg4-generic</subtype>		<subtype>nv</subtype>		<subtype>ogg</subtype>		<subtype>parityfec</subtype>		<subtype>pointer</subtype>		<subtype>quicktime</subtype>		<subtype>raw</subtype>		<subtype>rtp-enc-aescm128</subtype>		<subtype>rtx</subtype>		<subtype>SMPTE292M</subtype>		<subtype>ulpfec</subtype>		<subtype>vc1</subtype>		<subtype>vnd.CCTV</subtype>		<subtype>vnd.dlna.mpeg-tts</subtype>		<subtype>vnd.fvt</subtype>		<subtype>vnd.hns.video</subtype>		<subtype>vnd.iptvforum.1dparityfec-1010</subtype>		<subtype>vnd.iptvforum.1dparityfec-2005</subtype>		<subtype>vnd.iptvforum.2dparityfec-1010</subtype>		<subtype>vnd.iptvforum.2dparityfec-2005</subtype>		<subtype>vnd.iptvforum.ttsavc</subtype>		<subtype>vnd.iptvforum.ttsmpeg2</subtype>		<subtype>vnd.motorola.video</subtype>		<subtype>vnd.motorola.videop</subtype>		<subtype>vnd.mpegurl</subtype>		<subtype>vnd.ms-playready.media.pyv</subtype>		<subtype>vnd.nokia.interleaved-multimedia</subtype>		<subtype>vnd.nokia.videovoip</subtype>		<subtype>vnd.objectvideo</subtype>		<subtype>vnd.sealed.mpeg1</subtype>		<subtype>vnd.sealed.mpeg4</subtype>		<subtype>vnd.sealed.swf</subtype>		<subtype>vnd.sealedmedia.softseal.mov</subtype>		<subtype>vnd.vivo</subtype>	</video></media-types>