473,385 Members | 1,372 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Tutorial on XML namespaces?

I would like to parse RSS 1.0 (not RSS 2.0) files. But I don't know how to
work with these XML namespaces! And when namespaces are improperly used in
RSS 2.0 files, I don't know how to deal with them and exceptions keep
getting thrown! Does anyone have a tutorial or know of one that deals with
XML namespaces with the .NET framework, preferably in C#, or maybe a good
book to read? I just got my hands on Applied XML Programming for Microsoft
..NET, but it does NOT properly distinguish XML namespaces and how to work
with them.

Thanks for any help.

Jon
Nov 12 '05 #1
2 2457
There are some RSS readers available, with source code, you could see how
they work.

http://www.gotdotnet.com/community/w...aspx?query=rss

http://www.gotdotnet.com/Community/W...7-122e3703bb00

http://www.gotdotnet.com/Community/W...5-b6634d1a6a5a

I'm pretty sure I remember there being one on msdn as well? But that may be
bandit.

TomB

"Jon Davis" <jo*@REMOVE.ME.PLEASE.jondavis.net> wrote in message
news:uL*************@TK2MSFTNGP12.phx.gbl...
I would like to parse RSS 1.0 (not RSS 2.0) files. But I don't know how to
work with these XML namespaces! And when namespaces are improperly used in
RSS 2.0 files, I don't know how to deal with them and exceptions keep
getting thrown! Does anyone have a tutorial or know of one that deals with
XML namespaces with the .NET framework, preferably in C#, or maybe a good
book to read? I just got my hands on Applied XML Programming for Microsoft
.NET, but it does NOT properly distinguish XML namespaces and how to work
with them.

Thanks for any help.

Jon

Nov 12 '05 #2
Jon Davis wrote:
I would like to parse RSS 1.0 (not RSS 2.0) files. But I don't know how to
work with these XML namespaces! And when namespaces are improperly used in
RSS 2.0 files, I don't know how to deal with them and exceptions keep
getting thrown! Does anyone have a tutorial or know of one that deals with
XML namespaces with the .NET framework, preferably in C#, or maybe a good
book to read? I just got my hands on Applied XML Programming for Microsoft
.NET, but it does NOT properly distinguish XML namespaces and how to work
with them.


First get strong understanding of namespaces -
http://www.jclark.com/xml/xmlns.htm.
Then take a look at "XML Namespaces and How They Affect XPath and XSLT"
at
http://msdn.microsoft.com/library/en...asp?frame=true

--
Oleg Tkachenko [XML MVP, XmlInsider]
http://blog.tkachenko.com
Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Steven Bethard | last post by:
In the "empty classes as c structs?" thread, we've been talking in some detail about my proposed "generic objects" PEP. Based on a number of suggestions, I'm thinking more and more that instead of...
156
by: jacob navia | last post by:
There is a C tutorial at http://www.cs.virginia.edu/~lcc-win32 It is written to go with the compiler, available at the same URL. I have added quite a bit of material, and I would be glad if...
18
by: Xah Lee | last post by:
i've started to read python tutorial recently. http://python.org/doc/2.3.4/tut/tut.html Here are some quick critique: quick example: If the input string is too long, they don't truncate it,...
2
by: Michael Mayer | last post by:
This is not an ad for the best c# tutorial on the internet! And not from anybody world known. I just wanted to start a thread (to possibly gather more interest) based on a post Jon Skeet made...
3
by: Jon Davis | last post by:
I would like to parse RSS 1.0 (not RSS 2.0) files. But I don't know how to work with these XML namespaces! And when namespaces are improperly used in RSS 2.0 files, I don't know how to deal with...
11
by: Random | last post by:
I'm confused about the proper use and usefulness of namespaces. I beleive I understand the purpose is so the developer can put classes within namespaces to essentially organize your code. And I...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.