Retrieve Value From Xml Attributes

Posted by Chong on Stack Overflow See other posts from Stack Overflow or by Chong
Published on 2010-12-22T09:42:18Z Indexed on 2010/12/22 9:54 UTC
Read the original article Hit count: 264

Filed under:
|

hi everyone,

i want to get some value from xml file filtering with xml attribute. my xml format is like below.

<Object type="System.Windows.Forms.TextBox">    
    <Property name="Name">RadioButton1</Property>
    <Property name="Size">86, 24</Property>    
    <Property name="Text">RadioButton1</Property>
    <Property name="Location">175, 126</Property>    
</Object>

for example,

if name = "Name" then i will add its value to name textbox.

if name = "Size" then i will add its value to size textbox.

regards

Chong

© Stack Overflow or respective owner

Related posts about .NET

Related posts about Xml