Package org.apache.camel.builder.xml

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


                Namespaces ns = new Namespaces("c", "http://acme.com/cheese")
                        .add("xsd", "http://www.w3.org/2001/XMLSchema");

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


                // START SNIPPET: example
                Namespaces ns = new Namespaces("foo", "urn:cheese");

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

                Namespaces ns = new Namespaces("foo", "urn:cheese");

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

                Namespaces ns = new Namespaces("c", "http://acme.com/cheese")
                        .add("xsd", "http://www.w3.org/2001/XMLSchema");

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

                Namespaces ns = new Namespaces("c", "http://acme.com/cheese")
                        .add("xsd", "http://www.w3.org/2001/XMLSchema");

                // now lets create an xpath based Message Filter
                from("direct:start").
                        filter(ns.xpath("/c:person[@name='James']", String.class)).
                        to("mock:result");
                // END SNIPPET: example
            }
        };
    }
View Full Code Here

                // START SNIPPET: example
                Namespaces ns = new Namespaces("foo", "urn:cheese");

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

                Namespaces ns = new Namespaces("foo", "urn:cheese");

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

                Namespaces ns = new Namespaces("c", "http://acme.com/cheese")
                        .add("xsd", "http://www.w3.org/2001/XMLSchema");

                // now lets create an xpath based Message Filter
                from("direct:start").
                        filter(ns.xpath("/c:person[@name='James']", String.class)).
                        to("mock:result");
                // END SNIPPET: example
            }
        };
    }
View Full Code Here

                // START SNIPPET: example
                Namespaces ns = new Namespaces("foo", "urn:cheese");

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

                Namespaces ns = new Namespaces("foo", "urn:cheese");

                from("direct:start").
                        unmarshal().string().
                        setHeader("foo", ns.xpath("/foo:person[@name='James']")).
                        filter(ns.xpath("/foo: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.