473,385 Members | 1,814 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 16 '05 #1
3 1439
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 16 '05 #2
I was in the same situation about 4 months ago. I needed to suddenly know a lot about XML and XML schemas. I went out and bought 2 books. "XML Complete" (Sybex) $19.99 & "The XML Schema companion" (Addison Wesley) $39.99

It took me thereafter a couple of days to realise that namespaces in XML are merely unique identifiers and actually DON'T exist in reality

The nearest analogy I can think of now is the same elements and attributes in two different XML namespaces can be regarded similarly to the same method and property names of two different objects without a common interface

crater
Nov 16 '05 #3
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 16 '05 #4

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...
2
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...
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...
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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.