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

	<int-xml:xpath-router id="parseOnly" input-channel="xpathRouterEmptyChannel"
			order="2"
			auto-startup="false"
			role="foo"
			send-timeout="123"
			phase="-1">
		<int-xml:xpath-expression expression="/name"/>
	</int-xml:xpath-router>

	<int-xml:xpath-router id="xpathRouterEmpty" input-channel="xpathRouterEmptyChannel">
		<int-xml:xpath-expression expression="/name"/>
	</int-xml:xpath-router>

	<int-xml:xpath-router id="xpathRouterAsString" input-channel="xpathStringChannel" evaluate-as-string="true">
		<int-xml:xpath-expression expression="name(./node())"/>
	</int-xml:xpath-router>

	<int-xml:xpath-router id="xpathRouterWithMapping" input-channel="xpathRouterWithMappingChannel">
		<int-xml:xpath-expression expression="/name"/>
		<int-xml:mapping value="channelA" channel="channelB"/>
	</int-xml:xpath-router>

	<int-xml:xpath-router id="xpathRouterWithMappingMultiChannel" input-channel="multiChannelRouterChannel">
		<int-xml:xpath-expression expression="/root/name" />
		<int-xml:mapping value="channelA" channel="channelA"/>
		<int-xml:mapping value="channelB" channel="channelA"/>
	</int-xml:xpath-router>

	<int-xml:xpath-router id="xpathRouterWithCustomConverter"
		input-channel="customConverterChannel" evaluate-as-string="true"
		converter="testConverter">
		<int-xml:xpath-expression expression="/name"/>
	</int-xml:xpath-router>

	<int:channel id="channelA">
		<int:queue/>
	</int:channel>

	<int:channel id="channelB">
		<int:queue/>
	</int:channel>

	<int:channel id="channelZ">
		<int:queue/>
	</int:channel>

	<bean id="testConverter" class="org.springframework.integration.xml.config.XPathRouterParserTests$TestXmlPayloadConverter"/>

</beans>
