Its about xsd file. I created bean in java and calling from camel like
.bean(XSDToCamel.class,"parseXSD(/home/cloudera/Desktop/Sample.xsd)")
then i need to fetch the tags like,
.setHeader("tablename", simple("${body[0]................"))
Here i am expecting the tag value
My XSD:
<?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="PostCode" type="xs:string" />
<xs:element name="Country" type="xs:string " />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
How can i get the element name?
Because i need to insert into database dynamically. Reason why i need
element name to fetch.
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-Array-tp5760111p5760209.html
Sent from the Camel - Users mailing list archive at Nabble.com.