Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   XML (http://www.velocityreviews.com/forums/f32-xml.html)
-   -   XML Blogroll (http://www.velocityreviews.com/forums/t495901-xml-blogroll.html)

dlcacuff@gmail.com 04-02-2007 03:57 PM

XML Blogroll
 
What other attributes would be needed for an XML formatted blog-roll?
Can you help me add to this format / code.

<?xml version="1.0"?>
<blogRoll>
<blog>
<blogName>My Blog</blogName>
<blogDescription></blogDescription>
<htmlURI>http://www.myblog.com</htmlURI>
<xmlURI>xx.rss</xmlURI>
</blog>
</blogRoll>


dlcacuff@gmail.com 04-03-2007 06:45 PM

Re: XML Blogroll
 
On Apr 2, 11:57 am, dlcac...@gmail.com wrote:
> What other attributes would be needed for an XML formatted blog-roll?
> Can you help me add to this format / code.
>
> <?xml version="1.0"?>
> <blogRoll>
> <blog>
> <blogName>My Blog</blogName>
> <blogDescription></blogDescription>
> <htmlURI>http://www.myblog.com</htmlURI>
> <xmlURI>xx.rss</xmlURI>
> </blog>
> </blogRoll>


Possibly a tag the blog was <lastUpdated/> or <blogAdded/> ?


Simon Brooke 04-04-2007 10:02 AM

Re: XML Blogroll
 
in message <1175625925.144174.284790@n59g2000hsh.googlegroups .com>,
dlcacuff@gmail.com ('dlcacuff@gmail.com') wrote:

> On Apr 2, 11:57 am, dlcac...@gmail.com wrote:
>> What other attributes would be needed for an XML formatted blog-roll?
>> Can you help me add to this format / code.
>>
>> <?xml version="1.0"?>
>> <blogRoll>
>> <blog>
>> <blogName>My Blog</blogName>
>> <blogDescription></blogDescription>
>> <htmlURI>http://www.myblog.com</htmlURI>
>> <xmlURI>xx.rss</xmlURI>
>> </blog>
>> </blogRoll>

>
> Possibly a tag the blog was <lastUpdated/> or <blogAdded/> ?


Better an attribute, surely? Indeed, several of those things should be
attributes - blogName, htmlURI and xmlURI are definite candidates. Once
you've done that the only content of the <blog> element is the
description:

<?xml version="1.0"?>
<blogRoll>
<blog name="My Blog" htmlURI="http://www.myblog.com" xmlURI="xx.rss">
Description of my blog.
</blog>
</blogRoll>

Incidentally I think mixed case, studly caps and so on in element or
attribute names is a mistake. I know this because I've done it myself, and
it is a prime cause of bugs which are absurdly hard to spot. Stick to
either all uppers or (preferably) all lowers.

--
simon@jasmine.org.uk (Simon Brooke) http://www.jasmine.org.uk/~simon/

;; Women are from Venus. Men are from Mars. Lusers are from Uranus.


All times are GMT. The time now is 01:24 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57