Questions tagged [xmldatasource]

The XmlDataSource control is a data source control that presents XML data to data-bound controls.

The XmlDataSource control can be used by data-bound controls to display both hierarchical and tabular data. The XmlDataSource control is typically used to display hierarchical XML data in read-only scenarios. Because the XmlDataSource control extends the HierarchicalDataSourceControl class, it works with hierarchical data. The XmlDataSource control also implements the IDataSource interface and works with tabular, or list-style, data.

System.Object   
  System.Web.UI.Control  
    System.Web.UI.HierarchicalDataSourceControl  
      System.Web.UI.WebControls.XmlDataSource   
Namespace:  System.Web.UI.WebControls    
Assembly:  System.Web (in System.Web.dll)  

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.xmldatasource(v=vs.110).aspx

97 questions
28
votes
4 answers

How to programmatically set SelectedValue of Dropdownlist when it is bound to XmlDataSource

I'm using XmlDataSource as the datasource for a dropdownlist. Now I want to set the SelectedValue of the drop down when the page initially loads. I have tried the OnDataBound event of the drop down in which I could see the total items. But setting…
MNIK
  • 1,581
  • 3
  • 16
  • 22
18
votes
1 answer

MSTest data driven Test set DisplayName for Rows from DataSource

How can I set the DisplayName of a Data Row in data driven tests, where the data source is a XML and the provider is Microsoft.VisualStudio.TestTools.DataSource.XML. XML:
10
votes
1 answer

Jasper list element inside table element with XML datasource

I'm trying to generate a report, using Jasper iReport Designer 5.6.0, with table that contains lists inside its cells. The generated table could look like this: To do this, I'm using the following XML file as datasource:
mrle
  • 311
  • 1
  • 5
  • 13
9
votes
1 answer

How to use "deep" XML with MSTest XML Datasource

I'm having some problems with MSTest using an XML Datasource. Assume that I've got an XML file that looks like this: 1 Mike Paterson
devlife
  • 15,275
  • 27
  • 77
  • 131
4
votes
2 answers

ASP.NET -- How to populate a TreeView control with XML data response from a ASHX handler

I have an ASHX handler that returns an XML response (FileStructureXML.ashx). Now I need to get the XML response from the ASHX handler and use it as a data source for my ASPX page. If I point the XMLDataSource to a static XML file on the server, the…
JRS
3
votes
1 answer

How use nest Repeaters using a single XMLDataSource?

I'd like to use nested repeaters that share the same XML datasource where the parent repeater passes down the datasource to the child repeater so it doesn't need to re-access the datasource for every dataitem in the parent repeater. XPATH for…
RichC
  • 7,829
  • 21
  • 85
  • 149
3
votes
1 answer

Xpath within ItemDataBound for Repeater

Okay so I'm pulling in an XML feed from feedburner, using an XMLDataSource and a repeater.
Jack Marchetti
  • 15,536
  • 14
  • 81
  • 117
3
votes
2 answers

Subreport using XML file datasource don't work

I'm having a problem with subreport connected to a XML file. When I execute the report the preview don't show the subreport data, but if I execute the subreport alone, it shows the data correctly. What am I doing wrong? Data…
NeoRamza
  • 151
  • 1
  • 11
3
votes
1 answer

XPath / Grabbing node value in code behind

I am fairly new to ASP.NET (PHP programmer for 8 years), so please forgive me if my terminology is incorrect. I am currently grabbing a remote XML file in a repeater XMLDataSource, and the DataFile attribute is being set in the code behind (I have…
HVM
  • 61
  • 4
3
votes
1 answer

SSRS XML Data Source How do I query XML with multiple parent child hierarchy

How do I query XML data source in SSRS so that two parent-child hierarchies are returned? For example 1 2
2
votes
1 answer

xxx is not a valid virtual path?

I use XmlDataSource like this : as a datasource to my rotater control. but i get the following exception all the time : https://myurl.xml…
Anyname Donotcare
  • 11,113
  • 66
  • 219
  • 392
2
votes
1 answer

How to reverse xpath for subreport in jasper?

I try to navigate through xml nodes in the reverse direction when I create a subreport but this is not working. My report XPath is /root/parent/child1 and I want a subreport to have /root/parent/child2 as XPath
Idrees Samim
  • 463
  • 5
  • 15
2
votes
3 answers

Loop through XML elements in XmlDataSource in code behind

I have an XmlDataSource and a GridView on my page. On the Page_Load event, I apply an XPath to filter the xml elements according to the input of the user, LexiqueXmlDataSource.XPath = 'Some_XPath_here'; and it works just ok. What I want is to access…
0xFF
  • 4,140
  • 7
  • 41
  • 58
2
votes
2 answers

How to make list item value not reference to the object

my list item that is already added update base on current object (obj) value. how to make list not update or how to copy obj? public static void ReadData(string filename, T obj,string node) { var xmlDocument = new XmlDocument(); …
Benni To
  • 47
  • 6
2
votes
0 answers

How to access the attribute of XML tags in Dynamic reports

I'm using Dynamic reports to generate my reports for which testing generated XML file is datasource . this is my XML snippet
jeevan s
  • 223
  • 4
  • 14
1
2 3 4 5 6 7