The Hell of Dataset

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
Published Friday, November 21, 2003 11:08 AM by preishuber

Comments

# re: The Hell of Dataset

Friday, November 21, 2003 5:29 AM by Marcus
Could "slash" be a reserverd keyword?
Is it possible to change this word or is it part of rss standard?

# re: The Hell of Dataset

Friday, November 21, 2003 8:37 AM by rob
I don't mean to be picky, but your poor English skills are very offputting. I would actually prefer if you spoke in your native language, rather than in bad English.

Your arrogant write-off of a huge project based on your five-minute-problem does nothing to endear me to you either.

# re: The Hell of Dataset

Friday, November 21, 2003 9:22 AM by Hannes
I am not shure what you mean with "big project"? If you mean the work of the Microsoft guys which have developed ado.net - this is not a critc on them- its only a comment how should it be and how it must be solved- i have still the hope that there exist some smarter way...
I apologize with all thereby was concerned

# re: The Hell of Dataset

Friday, November 21, 2003 10:07 AM by Andreas Häber
Rob: hm.. have we read the same blog-entry?

I read about a problem and a solution. And then a question if there is a nicer solution to the problem.

But maybe I misunderstood something since I'm Norwegian/German :-)

# re: The Hell of Dataset

Friday, November 21, 2003 5:07 PM by rob
I meant this:

dont believe to this is award winning code

# re: The Hell of Dataset

Sunday, November 23, 2003 5:36 PM by Alex
Rob: your flame of Hannes for "poor English" and imagined "write-off" is outrageous.

Hannes, on behalf of the rest of us please ignore such language bigots and keep blogging!

Leave a Comment

(required) 
(required) 
(optional)
(required)