Notifications
Announcements
No record found.
Hello Experts,
I want to generate a XSD File from XML File Using C/AL Code.
Can any one explain or give me any useful links to achieve this.
Thank You
Mahesh.U
*This post is locked for comments
using DotNet variable you can replicate the code in the below or use XSD using Process Start Info to convert.
msdn.microsoft.com/.../system.xml.schema.xmlschemainference.aspx
Thanks for the link,
by refering that link i tried to write a code but no use i am not able to generate.
SchemaSet := XMlSchInt.XmlSchemaInference();XMlSchInt.InferSchema(XmlDocument,SchemaSet);XMlSchInt.TypeInference(XmlDocument); MESSAGE(XMlSchInt.ToString);
Variable Declaration
----------------------
Name DataType Subtype Length
XmlDocument DotNet System.Xml.XmlDocument.'System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
XMlSchInt DotNet System.Xml.Schema.XmlSchemaInference.'System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
SchemaSet DotNet System.Xml.Schema.XmlSchema.'System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
But it is giving error. please help me
What error are you getting ?
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.