everybody is talking about whidbey, but i still live in the year 2003. And so i tryed to load my Weblog into a dataset like
What i want to do
Dim reader As XmlTextReader = New XmlTextReader("http://weblogs.asp.net/hpreishuber/rss.aspx)
ds1.ReadXml(reader)
should be easy, but not
The double use of a element name ( with namespace) fires an exception
<wfw:comment>http://weblogs.asp.net/hpreishuber/comments/37529.aspx</wfw:comment>
<comments>http://weblogs.asp.net/hpreishuber/posts/37529.aspx#feedback</comments>
<slash:comments>0</slash:comments>
comments is the reason
I investigated 4 hours (google/newsgroups/msdn(- and not found the answere. The real problem is: i am not able to aks the right question
and how i have done it
Dim ds1 As New DataSet
Dim buffer As new StringBuilder
Dim reader As New XmlTextReader("c:\rss.xml")
reader.Read()
reader.MoveToElement()
buffer.Append(reader.ReadOuterXml)
buffer.Replace("h:c", "h-c")
ds1.ReadXml(new StringReader(buffer.ToString))
dont believe to this is award winning code