generate xml based on schema.
-
Hi All, We want to generate xml file based on schema file. Only the xml file is generated we need to populate data by passing objects, because we need to generate so many xml file. Final output should be a xml file with data. New to xml,Please help me with this. Thanks in advance.
Ramkumar ("When you build bridges you can keep crossing them. ") http://ramkumarishere.blogspot.com
-
Hi All, We want to generate xml file based on schema file. Only the xml file is generated we need to populate data by passing objects, because we need to generate so many xml file. Final output should be a xml file with data. New to xml,Please help me with this. Thanks in advance.
Ramkumar ("When you build bridges you can keep crossing them. ") http://ramkumarishere.blogspot.com
See my post above. If you are using Visual Studio there's a utility called XSD.exe which you run form the VS command prompt. XSD.exe <Schemaname1.XSD> <Schemaname2.XSD> /c this will generate a class based on your XSD's - Note if your schema imports from another schema then that schema name has to be included in the command. The /c at the end will give you a C# class. While I am exploring going down this route, I currently use the document object model (DOM) using a recursive Navigate algorithm from Ch 14 of Stehen Fraser's "Pro Visual C++/CLI and the .NET 3.5 Platform". My post above gives more insight into how I use this. I also draw heavily from Bipin Joshi's "Beginning XML with C# 2008 From Novice to Professional"
Ger