XML 适用于Flash的跨域XML

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
  <allow-access-from domain="*" />
</cross-domain-policy>

XML 备份脚本 - 配置文件

<?xml version="1.0"?>
<ROOT>
	<BACKUP file_prefix='backup/pf_' file_suffix='.tar.gz_'>
		<COMPRESS path='c++'/>
		<COMPRESS path='matlab'/>
		<COMPRESS path='latex'/>
		<COMPRESS path='python/backup.py'/>
	</BACKUP>
	
	<MAIL from='username@server.com' to='username.hd@server.com' subject_prefix='Backup PF: '>
		<SERVER addr='smtp.server.com' port='25' use_tls='no'/>
	</MAIL>
	
	<!--<MAIL from='username@gmail.com' to='username.hd@gmail.com' subject_prefix='Backup PF: '>
		<SERVER addr='smtp.gmail.com' port='587' use_tls='yes' login='username@gmail.com' password='unfortunately_must_be_plain'/>
	</MAIL>-->
</ROOT>

XML Xml配置条目以写出为序列化程序创建的临时程序集

<system.diagnostics> 
    <switches> 
        <add name="XmlSerialization.Compilation" value="4"/> 
    </switches> 
</system.diagnostics>

XML Spring JMS模板简单配置

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

    <bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate">
        <property name="environment">
            <props>
                <prop key="java.naming.provider.url">localhost:1099</prop>
                <prop key="java.naming.factory.url.pkgs">org.jnp.interfaces:org.jboss.naming</prop>
                <prop key="java.naming.factory.initial">org.jnp.interfaces.NamingContextFactory</prop>
            </props>
        </property>
    </bean>

    <bean id="connectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean">
        <property name="jndiTemplate">
            <ref bean="jndiTemplate"/>
        </property>
        <property name="jndiName">
            <value>ConnectionFactory</value>
        </property>
    </bean>


    <bean id="jmsTemplate"
          class="org.springframework.jms.core.JmsTemplate">
        <property name="connectionFactory" ref="connectionFactory"/>
        <property name="defaultDestination">
            <ref bean="sendDestination"/>
        </property>
    </bean>


    <bean id="sendDestination"
          class="org.springframework.jndi.JndiObjectFactoryBean">
        <property name="jndiTemplate">
            <ref bean="jndiTemplate"/>
        </property>
        <property name="jndiName">
            <value>queue/DummyQueue</value>
        </property>
    </bean>

    

</beans>

XML [CommandButton] que rellena campos de un Bean

<af:commandButton text="Continuar">
                  <af:setActionListener from="#{row.FILA}" to="#{CentrosBean.ATRIBUTOBEAN}"/>
                  <af:returnActionListener/>
                </af:commandButton>

XML 基线RSS XML

<?xml version="1.0" ?>
<rss version="2.0">
  <channel>
    <title>This is my first RSS feed!</title>
    <link>http://www.myWebSite.com</link>
    <description>I am testing out creating an RSS feed...</description>
 
    <item>
      <title>The First Item to Check Out</title>
      <link>http://www.myWebSite.com/story1.htm</link>
      <description>This is the first article on my Web site!</description>
    </item>

    <item>
      <title>The Second Item to Check Out</title>
      <link>http://www.myWebSite.com/story1.htm</link>
      <description>This is the second article on my Web site!</description>
    </item>

    ...
  </channel>
</rss>

XML Workload XML Sample和Stub

<workload>
 <actualWorkload>
 </actualWorkload>

 <plannedWorkload>
 </plannedWorkload>
</workload>

<!-- SAMPLE -->

<workload>
<actualWorkload>
<day id="2008-04-30">10.3</day>
<day id="2008-05-01">10.3</day>
<day id="2008-05-02">10.3</day>
<day id="2008-05-03">10.3</day>
<day id="2008-05-04">10.3</day>
<day id="2008-05-05">10.3</day>
<day id="2008-05-06">10.3</day>
<day id="2008-05-07">10.3</day>
<day id="2008-05-08">10.3</day>
<day id="2008-05-09">10.3</day>
<day id="2008-05-10">10.3</day>
<day id="2008-05-11">10.3</day>
<day id="2008-05-12">10.3</day>
<day id="2008-05-13">10.3</day>
<day id="2008-05-14">10.3</day>
</actualWorkload>

<plannedWorkload>
<day id="2008-04-30">7.3</day>
<day id="2008-05-01">7.3</day>
<day id="2008-05-02">7.3</day>
<day id="2008-05-03">7.3</day>
<day id="2008-05-04">7.3</day>
<day id="2008-05-05">7.3</day>
<day id="2008-05-06">7.3</day>
<day id="2008-05-07">7.3</day>
<day id="2008-05-08">7.3</day>
<day id="2008-05-09">7.3</day>
<day id="2008-05-10">7.3</day>
<day id="2008-05-11">7.3</day>
<day id="2008-05-12">7.3</day>
<day id="2008-05-13">7.3</day>
<day id="2008-05-14">7.3</day>
</plannedWorkload>
</workload>

XML .NET SMTP邮件服务器

<system.net>
        <mailSettings >
            <smtp>
                <network host="SERVER_NAME"/>
            </smtp>
        </mailSettings>
    </system.net>

XML Atom Hello World

<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
 
 <title>Example Feed</title>
 <subtitle>A subtitle.</subtitle>
 <link href="http://example.org/feed/" rel="self"/>
 <link href="http://example.org/"/>
 <updated>2003-12-13T18:30:02Z</updated>
 <author>
   <name>John Doe</name>
   <email>johndoe@example.com</email>
 </author>
 <id>urn:uuid:60a76c80-d399-11d9-b91C-0003939e0af6</id>
 
 <entry>
   <title>Atom-Powered Robots Run Amok</title>
   <link href="http://example.org/2003/12/13/atom03"/>
   <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
   <updated>2003-12-13T18:30:02Z</updated>
   <summary>Some text.</summary>
 </entry>
 
</feed>

XML RSS helloWorld

<?xml version="1.0" ?>
<rss version="0.92">
	<channel>
		<title>JTickerTest</title>
		<description>This is a test RSS feed for JTicker.</description>
		<link>http://www.jasons-toolbox.com/</link>
		<language>en-us</language>
		<item>
			<title>Lorem <strong>Ipsum</strong></title>
			<link>http://www.jasons-toolbox.com/</link>
			<description>
				<![CDATA[
				Lorem Ipsum <strong>Description</strong> (#1)
				]]>
			</description>
		</item>
		<item>
			<title>Dolar Set</title>
			<link>http://www.jquery.com/</link>
			<description>
				<![CDATA[
				Dolar <strong>Set</strong> Description (#2)
				]]>
			</description>
		</item>
		<item>
			<title>Testing 123</title>
			<link>http://www.visualjquery.com/</link>
			<description>
				<![CDATA[
				Testing <em>123</em> Description (#3)
				]]>
			</description>
		</item>
		<item>
			<title>8675309</title>
			<link>http://www.pcqanda.com/</link>
			<description>
				<![CDATA[
				<em>8675309</em> Description (#4)
				]]>
			</description>
		</item>
	</channel>
</rss>