|
-
February 19th, 2007, 05:31 AM
#1
xml read
I have a xml file and in a node i have attribute name and on the bases of the name i have to select the text of the child node i am not geting the way so plz help me. the xml file is as
<?xml version="1.0"?>
<!--List of controls with their property settings-->
<SheetGroup >
<ControlSheet Name="Caption" Quantity="2">
<NewControl Name="NewControl0">
<Caption>country</Caption>
<Type>TextBox</Type>
<Value>Null</Value>
</NewControl>
<NewControl Name="NewControl1">
<Caption>hobby</Caption>
<Type>CheckBox</Type>
<Value>Null</Value>
</NewControl>
</ControlSheet>
</SheetGroup>
on the bases of name attribute in newcontrol i have to select the value against that.
thank you in advace!
-
February 19th, 2007, 05:36 AM
#2
Re: xml read
Bogdan
If someone helped you then please Rate his post and mark the thread as Resolved
Please improve your messages appearance by using tags [ code] Place your code here [ /code]
-
February 19th, 2007, 07:11 AM
#3
Re: xml read
suppose i have to calculate the value of the newcontrol1 then on the bases of the newcontrol1 how can we calculate the caption of that.
-
February 19th, 2007, 12:59 PM
#4
Re: xml read
I am not sure whether I understood your question. If you have trouble reading xml file, there are many ways to do it.
1. using XmlTextReader class
2. using XmlDocument and XPath query
3. XmlSerializer class
..to name a few.
I am not sure what value you are trying to calculate. Please state it clearly.
-
February 20th, 2007, 05:16 AM
#5
Re: xml read
in the above xml i hav to change the caption through the programatically
how can i do it.
<Caption> Name </Caption>
i want to change the name value to the agethen ahow can i do it?
after that the xml is like
<Caption>age</Caption>
thanxs in advance.
-
February 20th, 2007, 06:23 AM
#6
Re: xml read
Bogdan
If someone helped you then please Rate his post and mark the thread as Resolved
Please improve your messages appearance by using tags [ code] Place your code here [ /code]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|