Click here to Skip to main content
15,911,715 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralXML > Dataset. Please, I need help. Thank You. Pin
shapper13-Jun-05 13:21
shapper13-Jun-05 13:21 
QuestionHow to get nodes and place data into dataset? Pin
shapper13-Jun-05 8:04
shapper13-Jun-05 8:04 
GeneralLittle Problem in XML and ASP based project Pin
eshban28410-Jun-05 9:39
eshban28410-Jun-05 9:39 
GeneralPlease Help: XSLT transformation problem with namespaces Pin
Member 169700910-Jun-05 8:32
Member 169700910-Jun-05 8:32 
GeneralRe: Please Help: XSLT transformation problem with namespaces Pin
DavidNohejl10-Jun-05 9:02
DavidNohejl10-Jun-05 9:02 
GeneralGet XmlSchemaElement from XmlSchema by ID Pin
El'Cachubrey9-Jun-05 23:18
El'Cachubrey9-Jun-05 23:18 
QuestionWhy this error when using XML data? Pin
shapper9-Jun-05 15:43
shapper9-Jun-05 15:43 
AnswerRe: Why this error when using XML data? Pin
shapper9-Jun-05 15:44
shapper9-Jun-05 15:44 
Sorry. Something went wrong with the post. Here it is:

Hello,

I have a XML file with the following structure:

<channel>
<title>...</title>
<link>...</link>
<description>...</description>
<item>
<title>4 Web Version 1.0 is available since today!</title>
<link></link>
<description>...</description>
<pubDate>...</pubDate>
</item>
...

I am trying to get the all item nodes and display them in a ASP:Repeater.
My code is as follows:

ASPX.VB
news.Load(Server.MapPath("xml/news.rss"))
rptNews.DataSource = news.SelectNodes("channel/item")
rptNews.DataBind()

ASPX
<asp:Repeater id="rptNews" runat="server">
<ItemTemplate>
<h1><%# DataBinder.Eval(Container.DataItem, "title") %></h1>
<p><%# DataBinder.Eval(Container.DataItem, "pubDate", "{0:f}") %></p>
<p><%# DataBinder.Eval(Container.DataItem, "description") %></p>
</ItemTemplate>
</asp:Repeater>

I get this error:
DataBinder.Eval: 'System.Xml.XmlElement' does not contain a property with the name title.

What am I doing wrong here?

Thanks,
Miguel
AnswerRe: Why this error when using XML data? Pin
Christian Graus9-Jun-05 15:47
protectorChristian Graus9-Jun-05 15:47 
QuestionImplementation of XML (.NET 1.1) and RemoveChild() - is it a bug ? Pin
lkrzanik9-Jun-05 5:27
lkrzanik9-Jun-05 5:27 
QuestionXML and ASP.NET. How to set this? Pin
shapper9-Jun-05 5:03
shapper9-Jun-05 5:03 
GeneralWhats wrong with this code Pin
Usman Tasleem Akshaf8-Jun-05 20:04
Usman Tasleem Akshaf8-Jun-05 20:04 
GeneralRe: Whats wrong with this code Pin
Christian Graus9-Jun-05 15:54
protectorChristian Graus9-Jun-05 15:54 
GeneralRe: Whats wrong with this code Pin
KaptinKrunch13-Jun-05 19:27
KaptinKrunch13-Jun-05 19:27 
GeneralRename Element(TagName) in DOM Pin
Fastfootskater7-Jun-05 21:41
Fastfootskater7-Jun-05 21:41 
GeneralRe: Rename Element(TagName) in DOM Pin
Fastfootskater8-Jun-05 1:56
Fastfootskater8-Jun-05 1:56 
Generalconvert xml file to excel file by using vb6 Pin
YETER737-Jun-05 20:30
YETER737-Jun-05 20:30 
GeneralUsing XML Schemas in C++ Unmanaged Code Pin
RFickling7-Jun-05 16:39
RFickling7-Jun-05 16:39 
GeneralConvert XML/XSL to Image File Pin
pfsarff7-Jun-05 10:55
pfsarff7-Jun-05 10:55 
GeneralRe: Convert XML/XSL to Image File Pin
DavidNohejl7-Jun-05 11:41
DavidNohejl7-Jun-05 11:41 
GeneralRe: Convert XML/XSL to Image File Pin
pfsarff8-Jun-05 4:27
pfsarff8-Jun-05 4:27 
GeneralRe: Convert XML/XSL to Image File Pin
DavidNohejl9-Jun-05 5:24
DavidNohejl9-Jun-05 5:24 
GeneralRe: Convert XML/XSL to Image File Pin
pfsarff9-Jun-05 6:03
pfsarff9-Jun-05 6:03 
GeneralRe: Convert XML/XSL to Image File Pin
DavidNohejl10-Jun-05 9:23
DavidNohejl10-Jun-05 9:23 
GeneralRe: Convert XML/XSL to Image File Pin
Anonymous12-Jun-05 4:27
Anonymous12-Jun-05 4:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.