You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by smilevasu6 <sr...@gmail.com> on 2014/11/28 07:29:24 UTC
Camel
Hi,
I want read below file in camel,
<?xml version="1.0" encoding="utf-8"?>
<xs:schema elementFormDefault="qualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Address">
<xs:complexType>
<xs:sequence>
<xs:element name="Recipient" type="xs:string" />
<xs:element name="House" type="xs:string" />
<xs:element name="Street" type="xs:string" />
<xs:element name="Town" type="xs:string" />
<xs:element name="County" type="xs:string" minOccurs="0" />
<xs:element name="PostCode" type="xs:string" />
<xs:element name="Country" type="xs:string minOccurs="0"" />
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Can you please help me how to router for this?
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-tp5759735.html
Sent from the Camel - Users mailing list archive at Nabble.com.
AW: Camel
Posted by "Jan Matèrne (jhm)" <ap...@materne.de>.
If you want to load an _instance_ of that schema and not the schema itself, this could also help
http://camel.apache.org/jaxb.html
Jan
> -----Ursprüngliche Nachricht-----
> Von: Charles Moulliard [mailto:ch007m@gmail.com]
> Gesendet: Freitag, 28. November 2014 09:41
> An: users@camel.apache.org
> Betreff: Re: Camel
>
> Hi,
>
> Here is the camel component that you should use to poll a directory
> containing files : http://camel.apache.org/file2.html
> As you are most probably a Camel beginner, please read the starting
> guide http://camel.apache.org/getting-started.html & how to design a
> camel route using DSL : http://camel.apache.org/dsl.html.
>
> Regards,
>
> On Fri, Nov 28, 2014 at 7:29 AM, smilevasu6 <sr...@gmail.com>
> wrote:
>
> > Hi,
> >
> > I want read below file in camel,
> >
> > <?xml version="1.0" encoding="utf-8"?> <xs:schema
> > elementFormDefault="qualified"
> > xmlns:xs="http://www.w3.org/2001/XMLSchema">
> > <xs:element name="Address">
> > <xs:complexType>
> > <xs:sequence>
> > <xs:element name="Recipient" type="xs:string" />
> > <xs:element name="House" type="xs:string" />
> > <xs:element name="Street" type="xs:string" />
> > <xs:element name="Town" type="xs:string" />
> > <xs:element name="County" type="xs:string" minOccurs="0" />
> > <xs:element name="PostCode" type="xs:string" />
> > <xs:element name="Country" type="xs:string minOccurs="0"" />
> > </xs:element>
> > </xs:sequence>
> > </xs:complexType>
> > </xs:element>
> > </xs:schema>
> >
> > Can you please help me how to router for this?
> >
> >
> >
> > --
> > View this message in context:
> > http://camel.465427.n5.nabble.com/Camel-tp5759735.html
> > Sent from the Camel - Users mailing list archive at Nabble.com.
> >
>
>
>
> --
> Charles Moulliard
> Apache Committer / Architect @RedHat
> Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
Re: Camel
Posted by Charles Moulliard <ch...@gmail.com>.
Hi,
Here is the camel component that you should use to poll a directory
containing files : http://camel.apache.org/file2.html
As you are most probably a Camel beginner, please read the starting guide
http://camel.apache.org/getting-started.html & how to design a camel route
using DSL : http://camel.apache.org/dsl.html.
Regards,
On Fri, Nov 28, 2014 at 7:29 AM, smilevasu6 <sr...@gmail.com>
wrote:
> Hi,
>
> I want read below file in camel,
>
> <?xml version="1.0" encoding="utf-8"?>
> <xs:schema elementFormDefault="qualified"
> xmlns:xs="http://www.w3.org/2001/XMLSchema">
> <xs:element name="Address">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="Recipient" type="xs:string" />
> <xs:element name="House" type="xs:string" />
> <xs:element name="Street" type="xs:string" />
> <xs:element name="Town" type="xs:string" />
> <xs:element name="County" type="xs:string" minOccurs="0" />
> <xs:element name="PostCode" type="xs:string" />
> <xs:element name="Country" type="xs:string minOccurs="0"" />
> </xs:element>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> </xs:schema>
>
> Can you please help me how to router for this?
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Camel-tp5759735.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog : http://cmoulliard.github.io