<?xml version="1.0" encoding="UTF-8"?>
<flow>
    <chain name="chain1">
        THEN(
            a,
            SWITCH(e).to(d),
            b
        );
    </chain>

    <chain name="chain2">
        THEN(
        a,
        SWITCH(e).to(b, d)
        );
    </chain>

    <chain name="chain3">
        THEN(
        a,
        SWITCH(f).to(b.tag("td"), d)
        );
    </chain>

    <chain name="chain4">
        THEN(
        a,
        SWITCH(g).to(b.tag("td"), d.tag("td"))
        );
    </chain>

    <chain name="chain5">
        THEN(
        a,
        SWITCH(h).to(b.tag("td"), d.tag("td"))
        );
    </chain>

    <chain name="chain6">
        THEN(
        a,
        SWITCH(h).to(b.tag("td"), b.tag("xx"))
        );
    </chain>

    <chain name="chain7">
        THEN(
        a,
        SWITCH(i).to(b, c).DEFAULT(d)
        );
    </chain>

    <chain name="chain8">
        THEN(
        a,
        SWITCH(j).to(b, c).DEFAULT(d)
        );
    </chain>

    <chain name="chain9">
        SWITCH(k).TO(a, chain10);
    </chain>

    <chain name="chain10">
        THEN(a, b);
    </chain>

    <chain name="chain11">
        THEN(
            SWITCH(l.tag("node_2")).TO(a.tag("node_1"), a.tag("node_2")),
            SWITCH(l.tag("node_3")).TO(a.tag("node_3"), a.tag("node_4"))
        );
    </chain>

    <chain name="chain12">
        SWITCH(l.tag("xx1")).TO(THEN(a,b).tag("xx1"), THEN(a,b,c).tag("xx2"));
    </chain>

    <chain name="chain13">
        SWITCH(m.tag("x1")).TO(sub1.tag("x1"), sub1.tag("x2"));
    </chain>

    <chain name="sub1">
        THEN(a);
    </chain>
</flow>