lmkk
lmkk

Reputation: 609

what is the easy way of showing xml data in aspx in some sort of data container?

what is the easy way of showing xml data in aspx in some sort of data container? in fx a gridview - note that the xml is in a tree structure

<element1>
   <element2>
      <element3>
         <element4>
           ......
</element1>

and i also have a schema that defines the xml

Upvotes: 1

Views: 63

Answers (1)

lance
lance

Reputation: 16342

System.Data.DataSet has a method named ReadXml() which will turn that XML (w/ or w/o schema) into a DataSet, which you can bind to your GridView as its data source.

Upvotes: 2

Related Questions