Author: AlanMcG | Posted on: 2/24/2009 10:27:50 AM | Views : 273

 Hi,

In the attached snippet, I retrieve a certain XML from the server, and then I displaysome info in my web app.

Imagine I retrieve the following XML

<?xml version='1.0' ?>
<root>
<name>Adam</name>
<surname>Sinclair</surname>
</root> 
In my web I will display the info like:
Name-Adam
Surname-Sinclair

Usually I would just use in the aspx doc a <asp:Label runat="server"> and dynamically add the label's text later, but I can't do that now.

Now what I have is a function that will read the XML and dynamically add labels to my aspx page. The aspx page has a <div id="mydiv"> element where I will add the labels. The code looks like this: Go to the complete details ...