I've been scouring all the specs, and my plan is for this set of  
classes to create "perfect" XML. Of course, however, that cannot be  
guaranteed. If a developer puts the wrong content into the title  
property, there's only so much I can do to "fix" it. If the developer  
uses the classes according to the spec, which I've been including  
into every property, then yes we should get perfect XML.

In terms of what it accepts, I plan on it being pretty loose. For  
example, the classes support 4 different kinds of ATOM feeds. I'm not  
being picky. If it is an ATOM feed, unless there is a significant  
difference between two ATOM formats, then it's an ATOM feed. So to  
use the example posted by Brent Simmons:

"Let’s say that Atom 0.6 defines a new element named “foo,” but then  
NetNewsWire is parsing an Atom 0.5 feed and it contains the foo  
element. What should NetNewsWire do? Ignore it? Or use it? In this  
case NetNewsWire might use the element."

It was my plan to do the exact same thing, even before reading this.

I should be able to do this very well. I've done it before in  
different languages. In PHP, I created a parser for a site which I  
gave it 1400 feeds in different languages from all over. These were  
real world feeds. Out of those 1400, 37 had errors which I could not  
recover from. That's a 97% hit rate. The stat may be even higher, as  
I estimate most of those errors were simple HTTP 404 or server not  
found errors.

So I'm working on these classes. I think they'll be great. And I was  
realizing in the shower today that using my HTTP Server, [future] XML- 
RPC Suite, and these classes, a developer would have all the tools  
necessary to write full-featured blog software in REALbasic. But  
really, that would be silly because most web servers don't run  
REALbasic programs.

--
Thom McGrath, <http://www.thezaz.com/>
"You don't need eyes to see, you need vision" - Maxi Jazz in  
"Reverence" by Faithless


On Apr 25, 2007, at 9:48 AM, Sam DeVore wrote:

> I would also find it useful, but please keep in mind Postel's Law
> (Postel’s law is the principle that you should be conservative in
> what you create and liberal in what you accept.)

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to