display a combo box and several text boxes in sync

M

Microsoft

Here is the situation. I have a very simple XML file with address
information (looks like this - <address1> 123 old pike
rd.</address1><City>Smallville></City>...). What I would like to do is to
load the <adresss1> field in a drop-down box (no sweat) AND sync the rest of
that "record" in text boxes.
I have tried navigating the DOM, but once the node is read by the DOM is
read as ONE node with all the address1 values loaded in the node.
1) How can I organize the XML so that when is read it's ion separate nodes?
and
2) Can it be parsed with a "flat" structure like this:
<?xml version="1.0" encoding="UTF-8"?>
<myAddress>
<address1>
121 Bakerfield Dr.
</address1>
<address2>
</address2>
<city>
Smallville
</city>
<state>
TX
</state>
<zip>
19788
</zip>
<address1>
992 Old Eagle School Rd.
</address1>
<address2>
Suite L
</address2>
<city>
Wayne
</city>
<state>
PA
</state>
<zip>
19809
</zip>
</myAddress>
Thanks for any help...
Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top