Rss/xml namespaces sgmllib, sax, minidom

S

Sakcee

I want to build a simple validator for rss2 feeds, that checks basic
structure and reports channels , items , and their attributes etc.

I have been reading Mark Pilgrims articles on xml.com, diveintopython
and someother stuff on sgmllib, sax.handlers and content handlers,
xml.dom.minidom

why is all of this necessary, what is the difference between all these
libraries, it seems to me that I can parse the rss2 feed with any of
these libraries.!! ?

what is the difference between namespaces and non-namspaces functions
in sax.handlers.contenthandler , is the namespace defined like domain
names on some website?

thanks for any comments
 
U

uche.ogbuji

Sakcee said:
I want to build a simple validator for rss2 feeds, that checks basic
structure and reports channels , items , and their attributes etc.

I have been reading Mark Pilgrims articles on xml.com, diveintopython
and someother stuff on sgmllib, sax.handlers and content handlers,
xml.dom.minidom

why is all of this necessary, what is the difference between all these
libraries, it seems to me that I can parse the rss2 feed with any of
these libraries.!! ?

what is the difference between namespaces and non-namspaces functions
in sax.handlers.contenthandler , is the namespace defined like domain
names on some website?

Based on this question, I tend to think you might want to leave the XML
processing to someone else's code. How about using Pilgrim's
feedparser?

http://feedparser.org/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top