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. Delphi
  4. Loading XML data into TlistBox [modified]

Loading XML data into TlistBox [modified]

Scheduled Pinned Locked Moved Delphi
questiondelphixml
2 Posts 2 Posters 3 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.
  • U Offline
    U Offline
    User 4134980
    wrote on last edited by
    #1

    How can I load XML file into TListBox in Delphi 2009? I want to make it possible to click a button and the channel lists will be load on ListBox and end user will click on any of the channel and it will start playing on media player. http://s253696961.online.de/images/bxxda7q6am71jkuwtrb.jpg

    modified on Tuesday, July 28, 2009 1:59 PM

    A 1 Reply Last reply
    0
    • U User 4134980

      How can I load XML file into TListBox in Delphi 2009? I want to make it possible to click a button and the channel lists will be load on ListBox and end user will click on any of the channel and it will start playing on media player. http://s253696961.online.de/images/bxxda7q6am71jkuwtrb.jpg

      modified on Tuesday, July 28, 2009 1:59 PM

      A Offline
      A Offline
      akirilov
      wrote on last edited by
      #2

      You can load the .xml file in some of the xml components for Delphi, like TXMLDocument. But it is SLOW, takes a LOT of memory and worst of all - have some strange behavior - after accessing a node you have to manually free it. Not to mention that you have to traverse trough nodes until you reach desired branch. If you need a simple job - like taking channels name from xml, I would suggest to open it as a txt file (you can open it trough TStringList for example, and use Text property for direct access) and manually parse it (use PosEx, to incrementally search for node names, and then Copy to extract desired names)

      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