I found this tool. CXSD
On their documentation: cxsd is a streaming XSD parser and XML parser generator for Node.js and (optionally but highly recommended) TypeScript. This is exactly what I need, so I follow their documentation and start to execute commands.
I have a problem when I try to execute this command: npm run cxsd file:///C:/XSDtoTypeScript/Flexinova.RBF.LI.V1.xsd
Unhandled rejection Error: Invalid URI "file:///C:/XSDtoTypeScript/Flexinova.RBF.LI.V1.xsd"
But when I try to open this from a browser, it opens normally. I don't know why URI is invalid? Does anyone know?