Show results of transformation

M

Mark Goldin

I need to show results of transformation on the server.
Thansformation returns an attribute based xml string.
Can I bind DataRepeater to the xml string?

Thanks
 
T

Teemu Keiski

Hi,

you would need to load the XML into DataSet and bind the Repeater to it.
Does this work, depends of suitability of the XML (to be loaded to DataSet).
 
M

Mark Goldin

Can you show a sample of doing that?
Thanks

Teemu Keiski said:
Hi,

you would need to load the XML into DataSet and bind the Repeater to it.
Does this work, depends of suitability of the XML (to be loaded to DataSet).
 
T

Teemu Keiski

Hi,

You have the XML as string, so load it into System.IO.StringReader and pass
that to the ReadXml method of DataSet (ReadXml does take a string, but
that's for file name if XML is in physical file). You need also to provide
the readmode (XmlReadMode enum) value for the method if you want to specify
explicityl how handle reading schema from the XML (probably there's no
such).

Dim xml As String="<?xml...."
Dim sreader As New System.IO.StringReader(xml)
ds.ReadXml(sreader)

That should do it.

-
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top