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. Group problem

Group problem

Scheduled Pinned Locked Moved XML / XSL
questionhtmlxmlhelp
2 Posts 2 Posters 6 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hello; I have trouble with XML. I have XML document like following; root A id="97033536" B id="09417" C id="09418" D E M18 /E /D /C /B B id="09417" C id="09419" D E M18 /E /D /C /B /A /root I want to get data in 2 rows like; 97033536 09417 09418 M18 97033536 09417 09419 M18 How can i get this result in Visual Basic with DOM? Thanks... Ahmet Orkun GEDiK

    R 1 Reply Last reply
    0
    • L Lost User

      Hello; I have trouble with XML. I have XML document like following; root A id="97033536" B id="09417" C id="09418" D E M18 /E /D /C /B B id="09417" C id="09419" D E M18 /E /D /C /B /A /root I want to get data in 2 rows like; 97033536 09417 09418 M18 97033536 09417 09419 M18 How can i get this result in Visual Basic with DOM? Thanks... Ahmet Orkun GEDiK

      R Offline
      R Offline
      Ranjan Banerji
      wrote on last edited by
      #2

      One way is to create an XSL and then transform the XML. This can be done by creating two DOM Documents. Load the XML in one and the XSL in one. call TranformNode for the XML by passing the XSL. The XSL could look something like: I like this approoach because if you wish to chnage the format of your data later on all you have to do is change the XSL and your code remains the same.

      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