So I've been coding for a few months now and I have a pretty good grasp of most things but I can't wrap my head around getting info from loops.
So here is my problem. I have a text file containing text similar to this:
<domain name="proxies">
<section name="proxy0">
<setting name="authorization_username" value="06"/>
<setting name="buddies_etag" value=""/>
<setting name="buddies_last_upload_failed" value="0"/>
<setting name="buddies_mod" value="0"/>
<setting name="contacts_etag" value=""/>
<setting name="contacts_mod" value="0"/>
<setting name="default_session_refresh_interval_in_seconds" value="60"/>
<setting name="digit_map" value="#1\a\a.T;match=1;prestrip=2;"/>
<setting name="display_name" value="US"/>
<setting name="domain" value="usbx.#####.com"/>
<setting name="enable_session_timer" value="0"/>
<setting name="enabled" value="1"/>
<setting name="forward_always" value="0"/>
<setting name="forward_always_uri" value=""/>
<setting name="forward_busy" value="1"/>
<setting name="forward_busy_uri" value="sip:06@usx.####.com"/>
<setting name="forward_no_answer" value="0"/>
<setting name="forward_no_answer_after_in_seconds" value="45"/>
<setting name="forward_no_answer_uri" value="sip:06@uspbx.rxworks.com"/>
<setting name="ice_enabled" value="1"/>
<setting name="listen_sip_port" value="50524"/>
<setting name="maximum_time_before_reregistration_in_seconds" value="180"/>
<setting name="minimum_time_before_reregistration_in_seconds" value="20"/>
<setting name="override_outbound_proxy" value="0"/>
<setting name="override_sip_listen_port" value="0"/>
<setting name="override_stun_server" value="0"/>
<setting name="password"
There is actually 4 more blocks of code with different parameters set.
I need to loop through this text file and pull the values out of:
authorization_username
display_name
domain
forward_busy_uri
What I don't understand is how would you loop through this, put each value into a variable, group them together and then move onto the next block of text and do the same.
Then after you've done this how would you know how to reference the variables?
If anyone can help, can you also please help me to understand the code? this is my last great hurdle in VB.