hello all,
This is my first time I wanna read from a XML file!
I have a XML file like this:
Well, I know I should use XMLReader for this:
Also, I know I can read it in a loop:
But the data are returned in a strange sort! Even if I split the reader.NodeType.
However, I am new to this.
I just wanna pass the TEXT and get the VALUE. And dont know how. Please help me. For example in this XML file:
<Account_Name type="SZ">my account #1</Account_Name>
I wanna pass Account_Name and get my account #1.
...
I searched and worked a lot but could not find it.
Please help me,
Thank you.
This is my first time I wanna read from a XML file!
I have a XML file like this:
Code:
<?xml version="1.0" encoding="utf-16" ?>
<MessageAccount>
<Account_Name type="SZ">my account #1</Account_Name>
<Connection_Type type="DWORD">00000003</Connection_Type>
<POP3_Server type="SZ">pop.domain.com</POP3_Server>
<POP3_User_Name type="SZ">info</POP3_User_Name>
<POP3_Password2 type="BINARY">gfdjkgdfghdfjkghdfgjk</POP3_Password2>
<POP3_Use_Sicily type="DWORD">00000000</POP3_Use_Sicily>
<POP3_Prompt_for_Password type="DWORD">00000000</POP3_Prompt_for_Password>
<SMTP_Server type="SZ">smtp.domain.com</SMTP_Server>
<SMTP_Display_Name type="SZ">My Name</SMTP_Display_Name>
<SMTP_Email_Address type="SZ">info@domain.com</SMTP_Email_Address>
</MessageAccount>
Code:
Dim reader As XmlTextReader = New XmlTextReader (URLString)
Code:
Do While (reader.Read())
Console.WriteLine(reader.Name)
Loop
However, I am new to this.
I just wanna pass the TEXT and get the VALUE. And dont know how. Please help me. For example in this XML file:
<Account_Name type="SZ">my account #1</Account_Name>
I wanna pass Account_Name and get my account #1.
...
I searched and worked a lot but could not find it.
Please help me,
Thank you.