Skip to main content
Announcements
A fresh, new look for the Data Integration & Quality forums and navigation! Read more about what's changed.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Creating XSD from a XML File

Hi,
I have a XML file with me with Data in the file.
I am Looking for a Component in Talend which can create a XSD file for me from the XML input.
Can anyone suggest me, how this can be done !!

Labels (2)
3 Replies
Anonymous
Not applicable
Author

Hi 
Read the XML file with tFileInputXML and generate the XML file again with tAdvancedFileOutputXML component, check the 'Create associated XSD file' option in the advanced setting tab of tAdvancedFileOutputXML to generate its XSD file. 
Anonymous
Not applicable
Author

Thank you shong, it worked.
Also there is a online utility, which was converting the XML to XSD very easily.
freeformatter.com/xsd-generator
Anonymous
Not applicable
Author

Hi @shong ,

 

I'm able to  generate xsd, but dataype is not present in the xsd file. Could you please help me. Thank you

 

<xsd:element name="actor_id" nillable="true" minOccurs="0" maxOccurs="unbounded"/>