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

How to create Metadata from XSD?

Hi,
 I have a scenario where I get a XSD (XML Schema Definition) file from which I have to generate a metadata for incoming XML files and then validate with the XSD. If the incoming file schema and the XSD schema are matching the file needs to be processed else it should be rejected.
So I need help in extracting Metadata from XSD and check it with Incomming XML files.
Thanks in Advance
Regards
M.Pavan Kumar
(ASE Virtusa India)
 
Labels (3)
4 Replies
Anonymous
Not applicable
Author

Hi Pavan,
tFileCompliance Check will help you to do this comparison of xml files. Create two metadata for this one for incoming file and another for xsd file in metadata.
https://help.talend.com/search/all?query=tSchemaComplianceCheck&content-lang=en
Whether you have already created metadata for your input xml?
https://help.talend.com/pages/viewpage.action?pageId=13807816
Thanks
Vaibhav
Anonymous
Not applicable
Author

Thank you Viabhav for your prompt reply.
I will check it with tFileCompliance and for the question you asked if I had created metadata for incoming file: iI have to create the metadata for the incoming file using the XSD file. That is the main target 
Thanks & Regards
M.Pavan Kumar
(ASE Virtusa Hyderabad)
Anonymous
Not applicable
Author

Anonymous
Not applicable
Author

I have an XSD schema file. I need to generate an XML file according to the XSD (this part works fine) containing database data. However, some elements need additional data to be able to find the proper field to get from the database. That's where the origin tag would come in. It would allow me to describe in the XSD where to look for the data. The tag need not be present in the generated XML, but if possible that same XSD would be used to validate the generated XML. Another way would be to use a separate XML file to describe this, I know. But I would like to know if it would at all be possible to do this in my XSD.