Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

validation help 1

Status
Not open for further replies.

lovewindoze

Technical User
Jan 16, 2003
36
US
I need help.
I'm trying to create an RSS feed using a .asp page that queries an Access database.

My feed 'looks' OK in the browser, but doesn't validate because of my GUID.

here's the feed.

i'm trying to keep the feed as simple as possible as I plan on using this page with TwitterFeed to update my Twitter page.

I apologize if this is a newbie issue - I'm new to XML.
 
If you must include it in the feed, make it speak out as living in another namespace (can be quite arbitrary if you're not going to validate that element.) For instance this.

[1] Change all GUID to z:GUID (z is arbitrarily chosen as an illustration) as tag name, for instance:
[tt]
<z:GUID>2099</z:GUID>[/tt]

[2] Declare the namespace with prefix z in the root.
[tt][ignore]
<rdf:RDF xmlns:rdf=" xmlns:dc=" xmlns:sy=" xmlns:admin=" xmlns=" xmlns:content="[blue]xmlns:z="[/blue]>
[/ignore][/tt]
where I choose an arbitrary uri (with some resemblance to webns.net for admin).
 
It validates....
Congratulations!
[Valid RSS] This is a valid RSS feed.
Recommendations
This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.
* line 2, column 0: Use of unknown namespace: [help]

is this anything to worry about?

I'm using GUID so the feed sorts correctly and readers can tell when something is new - I 'think' this is the way to do it, from what I've read.

I already had a UniqueID in my database, so I just changed the field name to GUID
 
>is this anything to worry about?
Not for the moment I would say.
When should you worry about it? It is when you want your (specific) audience takes profit of that piece of info when they read your feed with their feed reader(s) that particularly implement and support that namespace. For instance, important portal site such as government's or yahoo's or google's may have their specific namespace(s) published as extension over the feed standards for feed-readers to implement if they so desired, by public demand or by contractual obligation or else. Take an example, firefox can read rss with internal resource as feed reader. Google Chrome as it stands now does not render feed in any particular way (just plain xml way). And firefox, furthermore, supports [ignore][/ignore] namespace. Hence, those images can be displayed. If another feed-reader does not implement that support, they would be ignored. Hence, for a private fantasist namespace that nobody knows about or implements in their feed readers, those elements in that namespace would just be ignored in the rendering. It does not mean that the info is evaporated. It is just not shown in the reader in an organized way. That's about the essential of the logic behind as I see it.
 
For some reason, maybe what you were talking about.... Twitterfeed won't validate it with the GUIDs - regardless of whether or not I use <z:GUID> or <GUID>
 
Turn off the validation on parse feature, if it is an option to set in the application. Otherwise, since you are authoring a feed, I don't see any reason why you make those nodes into the feed, if not just for fun.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top