Package org.apache.camel.builder.xml

Examples of org.apache.camel.builder.xml.NamespaceBuilder


    protected RouteBuilder createRouteBuilder() {
        return new RouteBuilder() {
            public void configure() {
                // START SNIPPET: example
                // lets define the namespaces we'll need in our filters
                NamespaceBuilder ns = namespaceContext("c", "http://acme.com/cheese")
                    .namespace("xsd", "http://www.w3.org/2001/XMLSchema");

                from("direct:start").filter(ns.xpath("/c:person[@name='James']")).to("mock:result");
                // END SNIPPET: example
            }
        };
    }
View Full Code Here


    protected RouteBuilder createRouteBuilder() {
        return new RouteBuilder() {
            public void configure() {
                // START SNIPPET: example
                // lets define the namespaces we'll need in our filters
                NamespaceBuilder ns = namespaceContext("c", "http://acme.com/cheese")
                            .namespace("xsd", "http://www.w3.org/2001/XMLSchema");

                from("direct:start").filter(
                        ns.xpath("/c:person[@name='James']")
                ).to("mock:result");
                // END SNIPPET: example
            }
        };
    }
View Full Code Here

    protected RouteBuilder createRouteBuilder() {
        return new RouteBuilder() {
            public void configure() {
                // START SNIPPET: example
                // lets define the namespaces we'll need in our filters
                NamespaceBuilder ns = namespaceContext("c", "http://acme.com/cheese")
                    .namespace("xsd", "http://www.w3.org/2001/XMLSchema");

                from("direct:start").filter(ns.xpath("/c:person[@name='James']")).to("mock:result");
                // END SNIPPET: example
            }
        };
    }
View Full Code Here

TOP

Related Classes of org.apache.camel.builder.xml.NamespaceBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.