xml to xslt to gridview

I am working with ASP.Net and C# and I have the need to display the contents of an xml document. I have used altova stylevision to generate an xslt that generates some html.

The problem is that the format of that html is not as expected and I would like to make it consistent with other asp:gridviews that I am using for displaying other data in the same website.

So, the question would be: Is it possible to bind an asp:gridview to the xslt? Or alternatively are there other approaches to using asp web controls to display xml that you find more convenient?

Regards and thanks for making this site a value added resource.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Basically you can make your XSLT to produce exactly what you want as result, so if I'm understanding your problem the only thing you'll need to do is open your XSLT in a XML editor and modify it to format your result in your desired way.
If you are using the DataTable to bind data to gridview then you can use the DataTable.WriteXml to get a XML file and then you can do the XSLT and show the data in what ever form you want ...

Have a look : http://msdn.microsoft.com/en-us/library/x3zy2whb.aspx
robespierre_2010Author Commented:
hi masterpass,

I have an xslt that outputs html. What I need is a way to go from that xslt to a DataTable. Once I have the DataTable I can bind it to a gridview as usual. But what I do not know is how to build a DataTable from the contents of an xslt. That is what I need to know. I think you misunderstood what I need. I do not need to write xml (unless that is the only way of achieving the creation of a data structure that I can bind to a gridview).

Bardobrave: yes, I can modify the xslt on an editor but I don't want to do that because I want to use a gridview to display in the client.

thanks to both.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.