Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. generate xml based on schema.

generate xml based on schema.

Scheduled Pinned Locked Moved XML / XSL
xmldatabasecomhelp
2 Posts 2 Posters 5 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Ramkumar_S
    wrote on last edited by
    #1

    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

    G 1 Reply Last reply
    0
    • R Ramkumar_S

      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

      G Offline
      G Offline
      Ger Hayden
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups