Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IXmlNode problems
#3
Thanks so much. I totally understand now why some of the results (i.e. allowable variable names) worked and some didn't (e.g. integers). My question then is how do I assign an steadily increasing number of elements i.e. I don't know how many there will be. Or do I simply need to create an xml document with a set number of empty elements (a safely large number) to later populate and know that that will be the limit.


To be clearer, the example dialog I am creating has two listboxes. One the user populates over time with different names. The second listbox will display a series of text entries (also added over time) about the name selected in the first list box. When you select different names in the first list box, the second list box will display the series of text entries specific to that name. I have the syntax and programming structure ok for how to add and update elements in each listbox. Now I am just working on storing and associating them all in the xml document.

If the answer is simply to create a large empty form to populate later, then I can most likely do this on my own, so don't want to take your time, but any advice on working with xml is always appreciated.

Related issue: the dialog will be visible on multiple different monitors simultaneously and the listbox displays will be need to be kept in sync between all of them. I assume they will all be writing and reading from a single xml file on a network share. Is this strategy correct. I am of course worrying about colliding read/write requests. Initially will only be about 20 simultaneous users with occasional calls but could scale up. Maybe each name in the first listbox should generate its own xml document. That way, there is no limit on the number of elements and each single root element of the individual xml files can have as many attributes added as needed (i.e. the text entries in the second Listbox). Also, this would reduce the number of simultaneous users trying to call the same file.

I think I may have answered my own questions!!!! If so, thanks for providing the forum that allowed me to do so!!!
Stuart


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)