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. C#
  4. C# Doubt

C# Doubt

Scheduled Pinned Locked Moved C#
csharpxmlhelp
2 Posts 2 Posters 0 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.
  • C Offline
    C Offline
    crrajaguru
    wrote on last edited by
    #1

    I'm creating xml from dataset using ds.writexml("1.xml"); this line... I want xml according to my DTD format.. How is it possible in c# pls help me... Thankyou....

    R RajaGuru

    C 1 Reply Last reply
    0
    • C crrajaguru

      I'm creating xml from dataset using ds.writexml("1.xml"); this line... I want xml according to my DTD format.. How is it possible in c# pls help me... Thankyou....

      R RajaGuru

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I don't believe C# supports DTD files. Even if it did, it's certain the dataset class does not know how to mangle the data it has to try to fit to a DTD. You're out of luck. You can validate XML against a schema in C#, but you can't give C# a schema and some XML and expect it to reformat it for you. Your best bet is to look at the XML that comes out of your dataset, and write an xslt sheet that modifies it to fit your schema.

      Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )

      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