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. How to create xml document from dataset with null values ?

How to create xml document from dataset with null values ?

Scheduled Pinned Locked Moved XML / XSL
xmlhelptutorialquestion
4 Posts 3 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.
  • S Offline
    S Offline
    susree
    wrote on last edited by
    #1

    Hi , I want to create one xml document from a dataset where in some fields I am having null values. can any one help me out? thanks

    U 1 Reply Last reply
    0
    • S susree

      Hi , I want to create one xml document from a dataset where in some fields I am having null values. can any one help me out? thanks

      U Offline
      U Offline
      User 377904
      wrote on last edited by
      #2

      Hey, If you dont have values, xml generated from the dataset will be having blank values. Let me know is this your problem ? Regards Sri

      A S 2 Replies Last reply
      0
      • U User 377904

        Hey, If you dont have values, xml generated from the dataset will be having blank values. Let me know is this your problem ? Regards Sri

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        Hi , I have solved my problem .Actually if i am passing null values in dataset then it is not creating the xml element . So instead of passing null i passed null string("").Then it worked fine for me . Thanks

        1 Reply Last reply
        0
        • U User 377904

          Hey, If you dont have values, xml generated from the dataset will be having blank values. Let me know is this your problem ? Regards Sri

          S Offline
          S Offline
          susree
          wrote on last edited by
          #4

          Hi, I have solved my problem. Actually if I am passing null values in dataset xml is not creating the xml element. so instead of passing null I passed null string(""). After that it worked for me. thanks

          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