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. Visual Basic
  4. Help

Help

Scheduled Pinned Locked Moved Visual Basic
questioncsharpxmlhelp
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.
  • N Offline
    N Offline
    Nguyen Dinh Quy
    wrote on last edited by
    #1

    Are there any ways to bind information from a XML file into a listbox for Vb.Net? e.g I need to display all the products that are in the XML file into the listbox for the user to choose from. Another question would be how do we edit XML files? e.g After creating a XML file, I need to add more products into the XML file my project is mainly about product inventory

    C 1 Reply Last reply
    0
    • N Nguyen Dinh Quy

      Are there any ways to bind information from a XML file into a listbox for Vb.Net? e.g I need to display all the products that are in the XML file into the listbox for the user to choose from. Another question would be how do we edit XML files? e.g After creating a XML file, I need to add more products into the XML file my project is mainly about product inventory

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

      Nguyen Dinh Quy wrote: e.g I need to display all the products that are in the XML file into the listbox for the user to choose from. I'm not sure if there is an easier way, but I tend to get a node collection with an XPath, then I build an arraylist of strings from that and bind that to the listbox. Nguyen Dinh Quy wrote: After creating a XML file, I need to add more products into the XML file If you load your XML file into an XmlDocument, this class has methods to create new nodes, which you can then modify and insert nto the document by finding the parent node and calling (from memory) appendchild. It's involved enough that I wrote a wrapper for it all for wdwj mag a few years ago, but in hindsight I don't use it, it's not that bad. Nguyen Dinh Quy wrote: my project is mainly about product inventory Don't you think a SQL database is a better choice than XML ? How will you do searches ? Christian Graus - Microsoft MVP - C++

      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