Good day.
How to parse XML Schema(.xsd) file and generate to c# class file.
About my project:
Step1.
Parse XSD file (C# lang) —-Build Time —–> Generate CCode Dictionary(C# Class)
Step2.
Paser XML file(C# lang) —-Run Time —–> Fill the CCode Dictionary with the XML file value (C# App)
I researched the tools of XSD.exe / XSDObjectGen Tool etc. I found the C# class can’t be used for my project.
That’s why i want to parse the XSD file by myself.
I searched MSDN and found the the information:
Namespace: System.Xml.Schema
But i don’t know which class if better for me for using.
Any help will be appreciated.
BR!
Nano
In my project I successfully used xsd.exe to do this, with this command line:
xsd.exe schema.xsd /classes
What in the classes generated make them inappropriate for use in your project?