How to bind xmldocument into repeater control?

E

elain

I have a webform which contains a repeater server control. Now I want
to bind it with a xml nodelist. Since asp.net don't support xml
document to be datasource, so i first convert xmlnode to a dataset,
then let the dataset to be the datasource of my repeater. The problem
is the xmlnodes i want have childnodes and i also want to bind those
childnodes, but in dataset, parent nodes construct one datatable and
child nodes construct the other datatable, and there is no way to bind
two datatables as a datamember of repeater. My solution for this a
working but not good -- i copy child nodes to parent nodes one by one,
then convert xml doc to dataset with only one table in it.

Is there a easy way(any methods) to copy whole child elements and
attribute to parent node? Or is there a way to bind two datatables
into repeater?

Any help will be highly appreciated!

Elain
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top