Display XML file inthe html table format [Resolved]

Posted by Laghaterohan under C# on 1/15/2013 | Points: 10 | Views : 1262 | Status : [Member] | Replies : 3
I have following xml file
<A>
<B>
<Roll No>1</Roll No>
<Name>Rohan</Name>
</B>
</A>

I want to display this xml in html table...how to do this?

Best Regards,
Rohan Laghate



Responses

Posted by: Laghaterohan on: 1/16/2013 [Member] Starter | Points: 25

Up
0
Down

Resolved
hey, sorry for the late response.
I did solve it using some other technique....newayz thank you so much for your prompt reply.



Best Regards,
Rohan Laghate

Laghaterohan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sakthi.Singaravel on: 1/15/2013 [Member] Silver | Points: 25

Up
0
Down
For Each b As XElement In From el In inputXML.Root.Descendants("B").ToList

b.Element("Roll No").Name = "td"
b.Element("Name").Name = "td"
b.Name ="tr"
Next

//below code to change <A> element.
inputXML.Root.Name="table"


Regards,
Singaravel M

Laghaterohan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sakthi.Singaravel on: 1/16/2013 [Member] Silver | Points: 25

Up
0
Down
Are you get it..?

Regards,
Singaravel M

Laghaterohan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response