Package org.apache.camel.builder.xml

Examples of org.apache.camel.builder.xml.NamespaceBuilder.xpath()


                // 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


                // 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

                // 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
Copyright © 2018 www.massapi.com. 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.