VB.net/XML help

Liviathan

Platinum Member
Feb 21, 2001
2,286
0
0
So i have the xml string below. I need to write a function in vb.net that will get all then info inside command_set_one and get me the elementname and the elementvalue.

I need to get the element name and the element value. Can of stuck..any help would be great.

Thanks.

XML:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE eln_common_account_management SYSTEM 'elncami2.dtd'>
<eln_common_account_management>
<header_info>
<version value='1.1' />
<client_identifier>
<client_name>testname</client_name>
<client_version>6x</client_version>
</client_identifier>
<source code_id='testsoucecode'/>
<credentials>
<signature>rtZQ+Vk987n6Bt0w/snstQ==</signature>
</credentials>
</header_info>

<command_set_one>
<pre_qual isRegional='no' session_id="1121785664775.100831">
<broadband_optional_fields>
<portal_id>dev</portal_id>
<portal_tracking_id>test</portal_tracking_id>
<provider_id>provid</provider_id>
<affiliate_id />
<service_reference />
</broadband_optional_fields>
<service_phone>7735555555</service_phone>
<service_address>
<address1>6150 Main Street</address1>
<address2>Apt. 20</address2>
<city>Chicago</city>
<state>IL</state>
<zip_code>60660</zip_code>
</service_address>
<promo_bill_plan promo_code='1023180' />
</pre_qual>
</command_set_one>
</eln_common_account_management>


 

torpid

Lifer
Sep 14, 2003
11,631
11
76
You're kind of asking a lot here. You want us to write your code for you, more or less. Here's a random guess.