473,404 Members | 2,137 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,404 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 1441
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.