camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Matèrne (jhm) <apa...@materne.de>
Subject AW: camel - xsd
Date Tue, 09 Dec 2014 11:33:26 GMT
"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:srinivas.thunga@gmail.com]
> Gesendet: Dienstag, 9. Dezember 2014 10:58
> An: users@camel.apache.org
> 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.


Mime
View raw message