asp.net - Simple question about xml element in C# -


i'm not in asp.net(c#) , xml. have textbox control, button, , website url(ex: http://chelseacole.com/question) has content of xml file, this:

<paragraph> <text att1="1" att2="2">         facebook, facebook, facebook, facebook. </text> <text att1="3" att2="4">         twitter, twitter, twitter, twitter. </text> <text att1="5" att2="6">         facebook, twitter, facebook, twitter. </text> </paragraph> 

so want is: went click button, result appear in textbox control, this:

facebook, facebook, facebook, facebook. twitter, twitter, twitter, twitter. facebook, twitter, facebook, twitter. 

anyone gonna me? in advance! :">

if i've understand want achieve, try this:

xdocument document = xdocument.load("file.xml"); 

or:

xdocument document = xdocument.parse("<paragraph><text att ... ");  foreach (xelement item in document.descendants("text"))     textbox.text+=item.value + environment.newline; 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -