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. Write XSL for this xml i want to convert xml to CSV formt

Write XSL for this xml i want to convert xml to CSV formt

Scheduled Pinned Locked Moved XML / XSL
xmlquestionannouncement
2 Posts 2 Posters 2 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.
  • K Offline
    K Offline
    ksanju1000
    wrote on last edited by
    #1

    <?xml version="1.0" encoding="utf-16"?> <data> <student> <roll>234</roll> <name>Sidheshwar</name> <address> <DoorNo>123</DoorNo> <Street>MyStreet</Street> <city> <code>code01</code> <name>MyCity10</name> </city> <city> <code>code02</code> <name>MyCity11</name> </city> </address> <address> <DoorNo>200</DoorNo> <Street>MyStreet2</Street> </address> <address1> <Sam>1000address1</Sam> <Pankaj>MyStreet2000address1</Pankaj> </address1> <pin>560004</pin> </student> </data> i have a xml i want to convert xml to csv format using XSLT. I need to write XSL for this xml. It Should be genric.

    S 1 Reply Last reply
    0
    • K ksanju1000

      <?xml version="1.0" encoding="utf-16"?> <data> <student> <roll>234</roll> <name>Sidheshwar</name> <address> <DoorNo>123</DoorNo> <Street>MyStreet</Street> <city> <code>code01</code> <name>MyCity10</name> </city> <city> <code>code02</code> <name>MyCity11</name> </city> </address> <address> <DoorNo>200</DoorNo> <Street>MyStreet2</Street> </address> <address1> <Sam>1000address1</Sam> <Pankaj>MyStreet2000address1</Pankaj> </address1> <pin>560004</pin> </student> </data> i have a xml i want to convert xml to csv format using XSLT. I need to write XSL for this xml. It Should be genric.

      S Offline
      S Offline
      SeMartens
      wrote on last edited by
      #2

      Hi, have a look here: http://www.stylusstudio.com/xmldev/200404/post60210.html[^] The answer seems perfectly to suit your needs. Regards Sebastian

      It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

      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