Combobox and XML (dom)

fremenusul

New member
Joined
Mar 14, 2005
Messages
2
Programming Experience
Beginner
I have a class that stores my XML object.

Private Shared xmlDoc As XmlDocument

Public Shared Property Products() As XmlDocument
Get
If xmlDoc Is Nothing Then
Dim xmlFile As String = xmlLocation()
Dim xmlDoc As XmlDocument

xmlDoc = New XmlDocument
xmlDoc.Load(xmlFile)
End If

Return xmlDoc
End Get
Set(ByVal Value As XmlDocument)
xmlDoc = Value 'no real need to validate
End Set
End Property

here is my XML so far
<?xml version="1.0" encoding="utf-8" ?>

<products>
<!-- Repeat the structure below for each product. -->
<product>
<id>CP-90, T-32</id>
<company>Carwell</company>
<address>Street Address</address>
<city>City</city>
<state>State</state>
<zip>Zip</zip>
</product>

<!-- Next product here-->
</products>

I want to be able to read one item (id) into a combobox. BUT I want it to
"Refresh" in case the DOM tree has been updated. orginally, I put it in the
"LOAD" area of my VB app, but that wont work since I need the combobox to be
more dynamic.

Any ideas?

Thanks,

Michael
 
Back
Top