Yes but this time it has multiple elements jan, I am not getting idea how to start
On Tuesday, December 9, 2014, Jan Matèrne (jhm) [via Camel] < ml-node+s465427n5760381...@n5.nabble.com> wrote: > "How to read a xsd" - this was discussed just a few days ago ... > > 1. Read the data, doesn't matter if xml or not, from your datasource > (file, > db, http, ...). > 2. Optionally validate against xsd: > http://camel.apache.org/validation.html > 3. Optionally bind the data to JAXB classes (classes generated from xsd) > http://camel.apache.org/jaxb.html > > > Jan > > > > > -----Ursprüngliche Nachricht----- > > Von: smilevasu6 [mailto:[hidden email] > <http:///user/SendEmail.jtp?type=node&node=5760381&i=0>] > > Gesendet: Dienstag, 9. Dezember 2014 10:58 > > An: [hidden email] > <http:///user/SendEmail.jtp?type=node&node=5760381&i=1> > > Betreff: camel - xsd > > > > Hi, > > > > How can we read the below xsd in java and camel > > > > <?xml version="1.0" encoding="utf-8"?> > > <xs:schema elementFormDefault="qualified" > > xmlns:xs="http://www.w3.org/2001/XMLSchema"> > > <xs:element name="TABLES"> > > <xs:complexType> > > <xs:sequence> > > <xs:element name="BD_COMPANIES_T:BD_COMPANIES" type="xs:string" > > /> > > </xs:element> > > </xs:sequence> > > </xs:complexType> > > </xs:element> > > <xs:element name="MAPPINGS"> > > <xs:complexType> > > <xs:sequence> > > <xs:element name="COM_ID:BD_COM_ID" type="xs:string" /> > > <xs:element name="COM_NAME:BD_COM_NAME" type="xs:string" /> > > <xs:element > > name="COM_FUNCTIONAL_CURRENCY:BD_COM_FUNCTIONAL_CURRENCY" > > type="xs:string" > > /> > > <xs:element name="COM_CLOSING_ACCP_ID:BD_COM_CLOSING_ACCP_ID" > > type="xs:string" /> > > <xs:element name="COM_SET_OF_BOOKS:BD_COM_SET_OF_BOOKS" > > type="xs:string" /> > > <xs:element name="COM_PERIOD_SET_NAME:BD_COM_PERIOD_SET_NAME" > > type="xs:string minOccurs="0"" /> > > <xs:element name="COM_LOCATION:BD_COM_LOCATION" type="xs:string > > minOccurs="0"" /> > > <xs:element name="COM_ATTRIBUTE1:BD_COM_ATTRIBUTE1" > > type="xs:string" > > /> > > <xs:element name="COM_ATTRIBUTE2:BD_COM_ATTRIBUTE2" > > type="xs:string" > > minOccurs="0" /> > > <xs:element name="COM_ATTRIBUTE3:BD_COM_ATTRIBUTE3" > > type="xs:string" > > /> > > <xs:element name="COM_ATTRIBUTE4:BD_COM_ATTRIBUTE4" > > type="xs:string minOccurs="0"" /> > > <xs:element name="COM_ATTRIBUTE5:BD_COM_ATTRIBUTE5" > > type="xs:string > > minOccurs="0"" /> > > </xs:element> > > </xs:sequence> > > </xs:complexType> > > </xs:element> > > <xs:element name="KEYFIELDS"> > > <xs:complexType> > > <xs:sequence> > > <xs:element name="COM_ID:BD_COM_ID" type="xs:string" /> > > </xs:element> > > </xs:sequence> > > </xs:complexType> > > </xs:element> > > </xs:schema> > > > > > > Please advice > > > > > > > > -- > > View this message in context: http://camel.465427.n5.nabble.com/camel- > > xsd-tp5760376.html > > Sent from the Camel - Users mailing list archive at Nabble.com. > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > http://camel.465427.n5.nabble.com/camel-xsd-tp5760376p5760381.html > To unsubscribe from camel - xsd, click here > <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5760376&code=c3Jpbml2YXMudGh1bmdhQGdtYWlsLmNvbXw1NzYwMzc2fDE3NjU5MTYzMTM=> > . > NAML > <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- Sent from Gmail Mobile -- View this message in context: http://camel.465427.n5.nabble.com/camel-xsd-tp5760376p5760383.html Sent from the Camel - Users mailing list archive at Nabble.com.